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); } }
/// <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); } }
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(); }
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(); }
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)); } }
/// <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); }
protected void OnFocusIn(object o, FocusInEventArgs a) { return; }
internal static void EditorFocusIn(object sender, FocusInEventArgs args) { MonoTextEditor editor = (MonoTextEditor)sender; UpdateCaretPosition(editor.Caret); }
/// <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); }
void HandleParentFocusInEvent(object o, FocusInEventArgs args) { Hide(); }
private void HandleFontSizeFocusIn(object o, FocusInEventArgs args) { size_combo.ComboBox.Changed -= HandleSizeChanged; temp_size = size_combo.ComboBox.ActiveText; }
// Give the focus to the DrawingArea when mouse enters void OnFocus(object sender, FocusInEventArgs args) { darea.HasFocus = true; }
private void HandleFocusInEvent(object o, FocusInEventArgs args) { isFocused = true; }
protected void OnEntryDateFocusInEvent(object o, FocusInEventArgs args) { entryDate.SelectRegion(0, 10); }
protected void OnFocusInEvent(object o, FocusInEventArgs args) { username.GrabFocus(); }