Exemple #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;
        }
Exemple #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;
            }
        }
        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));
            }
        }
Exemple #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);
 }
Exemple #5
0
 public void MemoTextViewGotFocus(object obj, FocusInEventArgs args)
 {
 }
		void HandleFocusInEvent (object o, FocusInEventArgs args)
		{
			selectionColor = ColorStyle.SelectedText;
			currentLineColor = ColorStyle.LineMarker;
		}
Exemple #7
0
 protected void ValidateOnFocusInEvent(object o, FocusInEventArgs args)
 {
     this.ModifyBase (StateType.Normal);
 }
Exemple #8
0
 private void HandleFontSizeFocusIn(object o, FocusInEventArgs args)
 {
     size_combo.ComboBox.Changed -= HandleSizeChanged;
     temp_size = size_combo.ComboBox.ActiveText;
 }
 protected void OnEntryServerFocusInEvent(object o, FocusInEventArgs args)
 {
     if (entryName.Text == entryServer.Text)
         entryName.ModifyText (StateType.Normal, new Gdk.Color (0, 152, 190));
 }
    private void OnFocusIn (object o, FocusInEventArgs args) {
    	UpdateLineColStatus();
		UpdateOverwriteStatus();

		Core.Base.Ui.Menus.SetPasteSensitivity(true);
	}
 // ============================================
 // 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);
     });
 }
 protected void OnEntryDateFocusInEvent(object o, FocusInEventArgs args)
 {
     entryDate.SelectRegion(0,10);
 }
Exemple #13
0
 private void EntryFocusHandler(object sender, FocusInEventArgs args)
 {
     _viewportDocumentation.Text = _descriptors [IndexOf (sender)].Documentation;
 }
Exemple #14
0
 private void on_entry_focus_in(object sender, Gtk.FocusInEventArgs args)
 {
     QueueDraw();
 }
 protected virtual void OnEntryFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     QueueDraw();
 }
Exemple #16
0
		internal static void EditorFocusIn (object sender, FocusInEventArgs args)
		{
			TextEditor editor = (TextEditor)sender;
			UpdateCaretPosition (editor.Caret);
		}
Exemple #17
0
 protected void OnEntryP1AFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     entrySelected = (Gtk.Entry)o;
 }
 private void Parent_FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     _isFocused = true;
 }
 void FilterTextBox_FocusInEvent(object o, FocusInEventArgs args)
 {
     SetShowInfo(string.Empty);
 }
Exemple #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
 }
Exemple #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);
 }
Exemple #22
0
 private void Entry_FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     temp_zoom = PintaCore.Actions.View.ZoomComboBox.ComboBox.ActiveText;
 }
		void HandleFocusInEvent (object o, FocusInEventArgs args)
		{
			selectionColor = ColorStyle.SelectedText;
		}
Exemple #24
0
		void HandleParentFocusInEvent (object o, FocusInEventArgs args)
		{
			Hide ();
		}
 private void widget_FocusInEvent(object o, FocusInEventArgs args)
 {
     if (widget.Toplevel is FormsWindow) {
         var window = (FormsWindow)widget.Toplevel;
         window.Decorator.Focused = this;
     }
 }