octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior


From: Rik
Subject: [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior
Date: Tue, 6 Nov 2018 11:17:36 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0

Follow-up Comment #12, bug #54942 (project octave):

As part of that cset, also change msgbox.m to put the focus on the newly
created button.  A sample diff is


diff -r fe29584dad35 scripts/gui/msgbox.m
--- a/scripts/gui/msgbox.m      Mon Nov 05 11:11:47 2018 -0800
+++ b/scripts/gui/msgbox.m      Tue Nov 06 08:16:41 2018 -0800
@@ -268,6 +268,7 @@ function hf = __msgbox__ (msg, tit, icon
                    "callback", @cb_callback,
                    "keypressfcn", @cb_keypress,
                    "position", [ax_sz(1)/2-40 ax_margin 80 28], "parent",
hp);
+  uicontrol (hui);  # Set focus on created pushbutton                   
 
   set (hf, "windowstyle", windowstyle, "visible", "on");

 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54942>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]