Ejemplo n.º 1
0
 protected void OnYspinMoneyFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     if (yspinMoney.ValueAsDecimal == Decimal.Zero)
     {
         yspinMoney.Text = "";
     }
 }
Ejemplo n.º 2
0
            public virtual void FocusInEvent(object o, Gtk.FocusInEventArgs args)
            {
                var handler = Handler;

                if (handler == null)
                {
                    return;
                }
                handler.Callback.OnGotFocus(handler.Widget, EventArgs.Empty);
            }
Ejemplo n.º 3
0
 protected void OnYentrySignBaseOfFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     if (yentrySignBaseOf.Completion == null)
     {
         yentrySignBaseOf.Completion = new Gtk.EntryCompletion();
         var list = Repository.Client.CounterpartyRepository.GetUniqueSignatoryBaseOf(UoW);
         yentrySignBaseOf.Completion.Model      = ListStoreWorks.CreateFromEnumerable(list);
         yentrySignBaseOf.Completion.TextColumn = 0;
         yentrySignBaseOf.Completion.Complete();
     }
 }
Ejemplo n.º 4
0
 void OnFocusIn(object s, Gtk.FocusInEventArgs a)
 {
     if (!Unselectable)
     {
         Select();
     }
     else if (ParentWrapper != null)
     {
         ParentWrapper.Select();
     }
 }
Ejemplo n.º 5
0
        void OnMainWindowFocusInEvent(object sender, Gtk.FocusInEventArgs e)
        {
            if (MainWindow.Notebook.IsBrowseModeEnabled)
            {
                return;
            }

            var currentChatView = MainWindow.Notebook.CurrentChatView;

            if (currentChatView == null)
            {
                return;
            }
            DisposeIndicator(currentChatView);
        }
Ejemplo n.º 6
0
        void OnMainWindowFocusInEvent(object sender, Gtk.FocusInEventArgs e)
        {
            Trace.Call(sender, e);

            if (MainWindow.Notebook.IsBrowseModeEnabled)
            {
                return;
            }

            var currentChatView = MainWindow.Notebook.CurrentChatView;

            if (currentChatView == null)
            {
                return;
            }
            DisposeNotification(currentChatView);
        }
Ejemplo n.º 7
0
        void OnMainWindowFocusInEvent(object sender, Gtk.FocusInEventArgs e)
        {
            if (MainWindow.Notebook.IsBrowseModeEnabled)
            {
                return;
            }

            var currentChatView = ChatViewManager.CurrentChatView;

            if (currentChatView == null)
            {
                return;
            }
#if INDICATE_SHARP
            DisposeIndicator(currentChatView);
#elif MESSAGING_MENU_SHARP
            DisposeSource(currentChatView);
#endif
        }
Ejemplo n.º 8
0
            void HandleFocusInEventHandler(object o, Gtk.FocusInEventArgs args)
            {
                var entry = o as Gtk.Entry;
                var h     = Handler;

                if (Mouse.Buttons == MouseButtons.Primary)
                {
                    // translate mouse cursor to location in text
                    int x, y, idx, trailing;
                    entry.GetWindow().GetOrigin(out x, out y);
                    x = (int)Math.Round(Mouse.Position.X) - x - cell_area.X;
                    if (entry.Layout.XyToIndex(Pango.Units.FromPixels(x), 0, out idx, out trailing))
                    {
                        Application.Instance.AsyncInvoke(() => entry.SelectRegion(idx, idx));
                        return;
                    }
                }

                if (h.AutoSelectMode == AutoSelectMode.Never)
                {
                    Application.Instance.AsyncInvoke(() => entry.SelectRegion(entry.Text.Length, entry.Text.Length));
                }
            }
Ejemplo n.º 9
0
 protected void OnFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     message.GrabFocus();
 }
Ejemplo n.º 10
0
 private void WorkbenchFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     UnityModeAddin.UpdateUnityProjectState();
 }
Ejemplo n.º 11
0
 void OnFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     SetPlaceholderText(false);
 }
Ejemplo n.º 12
0
 public void FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     Handler.Callback.OnGotFocus(Handler.Widget, EventArgs.Empty);
 }
Ejemplo n.º 13
0
 private void _window_FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     Instance.TriggerIsActiveChanged(true);
 }
Ejemplo n.º 14
0
 public void FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     Handler.Widget.OnGotFocus(EventArgs.Empty);
 }
Ejemplo n.º 15
0
 void HandleWidgetFocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     Toolkit.Invoke(delegate {
         EventSink.OnGotFocus();
     });
 }
Ejemplo n.º 16
0
 public override void FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     base.FocusInEvent(o, args);
     Handler?.SetSelection();
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Handles the rom list FocusIn event.
 /// </summary>
 /// <param name="o">The ROM list Gtk.TreeView.</param>
 /// <param name="args">The event data.</param>
 protected void HandleRomListFocusIn(object o, Gtk.FocusInEventArgs args)
 {
     ViewModel.ListHasFocus = true;
 }
Ejemplo n.º 18
0
 protected virtual void OnNotebookFocusInEvent(object sender, Gtk.FocusInEventArgs e)
 {
     // HACK: having the focus in the notebook doesn't make any sense,
     // so move focus back to the entry
     Entry.GrabFocus();
 }
Ejemplo n.º 19
0
 private void Parent_FocusInEvent(object o, Gtk.FocusInEventArgs args)
 {
     IsFocused = true;
 }
Ejemplo n.º 20
0
 protected virtual void OnEntryFocusIn(object o, Gtk.FocusInEventArgs args)
 {
     this.QueueDraw();
 }