Ejemplo n.º 1
0
 protected void windowFocusIn_event(object o, FocusInEventArgs args)
 {
     if (Docked)
     {
         // In this case, the focus in event is raised from LoggerWindow
         if (timeDisplayBox.HasFocus)
         {
             Program.ClockPropertiesWindow.SetHandler(LogHandler);
         }
     }
     else
     {
         // In this case, the focus in event is raised from this.
         Program.ClockPropertiesWindow.SetHandler(LogHandler);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handle receiving focus by adding accelerators for the popup menu
 /// </summary>
 /// <param name="o"></param>
 /// <param name="args"></param>
 private void OnTreeGainFocus(object o, FocusInEventArgs args)
 {
     try
     {
         // window is already in the list of acceleratables. Need to remove accelerators before we add them!
         if (ContextMenu != null && !acceleratorsAreAttached)
         {
             (treeview1.Toplevel as Gtk.Window).AddAccelGroup(ContextMenu.Accelerators);
             acceleratorsAreAttached = true;
         }
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }
Ejemplo n.º 3
0
        private static void dialog_FocusInEvent(object o, FocusInEventArgs args)
        {
            if (windows.Count == 0)
            {
                return;
            }

            Window top = windows.Peek();

            if (ReferenceEquals(top, o))
            {
                return;
            }

            top.Present();
            top.GrabFocus();
        }
Ejemplo n.º 4
0
        private void cboPaymentMethod_FocusInEvent(object o, FocusInEventArgs args)
        {
            if (selectedPayment != null)
            {
                if (cboSelectedType != null)
                {
                    selectedPayment.TypeId = (long)cboSelectedType.GetSelectedValue();
                }

                if (txtSelectedAmount != null)
                {
                    txtSelectedAmount.Changed -= OnSelectedValueChanged;
                    selectedPayment.Quantity   = Currency.ParseExpression(txtSelectedAmount.Text);
                }
            }

            selectedPayment   = null;
            cboSelectedType   = null;
            txtSelectedAmount = null;
            RefreshGrid();
        }
Ejemplo n.º 5
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));
            }
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Entering the textbox event
 /// </summary>
 /// <param name="o">The calling object</param>
 /// <param name="args">The arguments</param>
 private void OnTextBoxEnter(object o, FocusInEventArgs args)
 {
     ((o as Widget).Toplevel as Gtk.Window).AddAccelGroup(accel);
 }
Ejemplo n.º 7
0
 protected void OnFocusIn(object o, FocusInEventArgs a)
 {
     return;
 }
Ejemplo n.º 8
0
        internal static void EditorFocusIn(object sender, FocusInEventArgs args)
        {
            MonoTextEditor editor = (MonoTextEditor)sender;

            UpdateCaretPosition(editor.Caret);
        }
Ejemplo n.º 9
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);
 }
Ejemplo n.º 10
0
 void HandleParentFocusInEvent(object o, FocusInEventArgs args)
 {
     Hide();
 }
Ejemplo n.º 11
0
 private void HandleFontSizeFocusIn(object o, FocusInEventArgs args)
 {
     size_combo.ComboBox.Changed -= HandleSizeChanged;
     temp_size = size_combo.ComboBox.ActiveText;
 }
Ejemplo n.º 12
0
 // Give the focus to the DrawingArea when mouse enters
 void OnFocus(object sender, FocusInEventArgs args)
 {
     darea.HasFocus = true;
 }
Ejemplo n.º 13
0
 private void HandleFocusInEvent(object o, FocusInEventArgs args)
 {
     isFocused = true;
 }
Ejemplo n.º 14
0
 protected void OnEntryDateFocusInEvent(object o, FocusInEventArgs args)
 {
     entryDate.SelectRegion(0, 10);
 }
Ejemplo n.º 15
0
 protected void OnFocusInEvent(object o, FocusInEventArgs args)
 {
     username.GrabFocus();
 }