[Scilab-users] uicontrol "edit"

Samuel Gougeon sgougeon at free.fr
Fri Nov 9 20:15:36 CET 2012


Le 09/11/2012 10:03, Stefan Du Rietz a écrit :
> On 2012-11-08 21:36, Samuel Gougeon wrote:
> --------------------
>> Le 08/11/2012 19:25, Stefan Du Rietz a écrit :
>>> is this intended or a bug in uicontrol: when I press a button, an
>>> edit field is not updated with the last written text. I have to
>>> either press return in the edit field or move focus elsewhere.
>> Likely yes, it is intended. This behavior has been reported here:
>> http://bugzilla.scilab.org/show_bug.cgi?id=6349#c1
>
> Imagine a simple but useful GUI with an edit field for user input and 
> an OK-button. When the user has written some characters (which [s]he 
> can see!), [s]he presses the OK-button and its callback function reads 
> an empty string!
The example that you have posted here
http://bugzilla.scilab.org/show_bug.cgi?id=6349#c6
works as you expect with Scilab 5.3.0  64 bits / windows 7:

changing the edited value and pressing OK updates the text value
without pressing return in the edit field nor bluring the focus
except on "OK"

and (mis)works as you report in this thread, with 5.4.0.

So clearly there is a change of behavior from 5.3.0 to 5.4.0.

Regards
Samuel



More information about the users mailing list