Пример #1
0
        protected virtual void OnLocationsGridFocusInEvent(object o, Gtk.FocusInEventArgs args)
        {
            tbox_container.Visible      = false;
            btn_AddContainer.Visible    = false;
            btn_RemoveContainer.Visible = false;

            tbox_Location.Visible      = true;
            btn_AddLocation.Visible    = true;
            btn_RemoveLocation.Visible = true;

            tbox_item.Visible      = false;
            btn_AddItem.Visible    = false;
            btn_RemoveItem.Visible = false;
        }
Пример #2
0
        protected virtual void OnItemsGridFocusInEvent(object o, Gtk.FocusInEventArgs args)
        {
            if (DataAccess.Instance.SelectedContainer != null)
            {
                tbox_container.Visible      = false;
                btn_AddContainer.Visible    = false;
                btn_RemoveContainer.Visible = false;

                tbox_Location.Visible      = false;
                btn_AddLocation.Visible    = false;
                btn_RemoveLocation.Visible = false;

                tbox_item.Visible      = true;
                btn_AddItem.Visible    = true;
                btn_RemoveItem.Visible = true;
            }
        }
Пример #3
0
        void OnSourceFocusInEvent(object o, FocusInEventArgs args)
        {
            IsParallelMode = false;
            if(OutEntry != null && GetParallelTextFunc != null)
            {
                if (String.IsNullOrEmpty (OutEntry.Text))
                    IsParallelMode = true;
                else
                    IsParallelMode = OutEntry.Text == GetParallelTextFunc(o);
            }

            if(IsParallelMode)
            {
                logger.Debug ("Включен режим паралельного редактирования.");
                OutEntry.ModifyText (StateType.Normal, new Gdk.Color(0, 152, 190));
            }
        }
Пример #4
0
 /// <summary>
 /// Handle receiving focus by adding accelerators for the popup menu
 /// </summary>
 /// <param name="o"></param>
 /// <param name="args"></param>
 private void Treeview1_FocusInEvent(object o, FocusInEventArgs args)
 {
     (treeview1.Toplevel as Gtk.Window).AddAccelGroup(accel);
 }
Пример #5
0
 public void MemoTextViewGotFocus(object obj, FocusInEventArgs args)
 {
 }
Пример #6
0
		void HandleFocusInEvent (object o, FocusInEventArgs args)
		{
			selectionColor = ColorStyle.SelectedText;
			currentLineColor = ColorStyle.LineMarker;
		}
Пример #7
0
 protected void ValidateOnFocusInEvent(object o, FocusInEventArgs args)
 {
     this.ModifyBase (StateType.Normal);
 }
Пример #8
0
 private void HandleFontSizeFocusIn(object o, FocusInEventArgs args)
 {
     size_combo.ComboBox.Changed -= HandleSizeChanged;
     temp_size = size_combo.ComboBox.ActiveText;
 }
Пример #9
0
 protected void OnEntryServerFocusInEvent(object o, FocusInEventArgs args)
 {
     if (entryName.Text == entryServer.Text)
         entryName.ModifyText (StateType.Normal, new Gdk.Color (0, 152, 190));
 }
Пример #10
0
    private void OnFocusIn (object o, FocusInEventArgs args) {
    	UpdateLineColStatus();
		UpdateOverwriteStatus();

		Core.Base.Ui.Menus.SetPasteSensitivity(true);
	}
Пример #11
0
 // ============================================
 // PRIVATE (Methods) Event Handlers
 // ============================================
 private void OnPasswordFocusIn(object obj, FocusInEventArgs args)
 {
     Gtk.Application.Invoke(delegate {
         GUI.Dialogs.Login login = this.nyFolder.LoginDialog;
         login.Password = BuddyDb.AccountPassword(login.Username);
     });
 }
Пример #12
0
 protected void OnEntryDateFocusInEvent(object o, FocusInEventArgs args)
 {
     entryDate.SelectRegion(0,10);
 }
Пример #13
0
 private void EntryFocusHandler(object sender, FocusInEventArgs args)
 {
     _viewportDocumentation.Text = _descriptors [IndexOf (sender)].Documentation;
 }
Пример #14
0
 private void on_entry_focus_in(object sender, Gtk.FocusInEventArgs args)
 {
     QueueDraw();
 }
 protected virtual void OnEntryFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     QueueDraw();
 }
Пример #16
0
		internal static void EditorFocusIn (object sender, FocusInEventArgs args)
		{
			TextEditor editor = (TextEditor)sender;
			UpdateCaretPosition (editor.Caret);
		}
Пример #17
0
 protected void OnEntryP1AFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     entrySelected = (Gtk.Entry)o;
 }
Пример #18
0
 private void Parent_FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     _isFocused = true;
 }
Пример #19
0
 void FilterTextBox_FocusInEvent(object o, FocusInEventArgs args)
 {
     SetShowInfo(string.Empty);
 }
Пример #20
0
 void OnFocusIn(object sender, FocusInEventArgs  args)
 {
     //get the actual size of the top level window of current widget
     if (Toplevel.Allocation.Width - 20 > 20)
         Width = Toplevel.Allocation.Width - 20;
     SetSizeRequest (Width, Height);  //Sets the minimum size of a widget
 }
Пример #21
0
 /// <summary>
 /// Handle receiving focus by adding accelerators for the popup menu
 /// </summary>
 /// <param name="o"></param>
 /// <param name="args"></param>
 private void FocusInEvent(object o, FocusInEventArgs args)
 {
     ((o as Widget).Toplevel as Gtk.Window).AddAccelGroup(accel);
 }
Пример #22
0
 private void Entry_FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     temp_zoom = PintaCore.Actions.View.ZoomComboBox.ComboBox.ActiveText;
 }
Пример #23
0
		void HandleFocusInEvent (object o, FocusInEventArgs args)
		{
			selectionColor = ColorStyle.SelectedText;
		}
Пример #24
0
		void HandleParentFocusInEvent (object o, FocusInEventArgs args)
		{
			Hide ();
		}
Пример #25
0
 private void widget_FocusInEvent(object o, FocusInEventArgs args)
 {
     if (widget.Toplevel is FormsWindow) {
         var window = (FormsWindow)widget.Toplevel;
         window.Decorator.Focused = this;
     }
 }