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

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

[Octave-bug-tracker] [bug #60153] uicontrol pushbutton has different beh


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60153] uicontrol pushbutton has different behavior for 'Value' field from Matlab
Date: Wed, 3 Mar 2021 05:30:07 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.81

Update of bug #60153 (project octave):

                Category:         Octave Function => GUI                    
                 Release:                   6.2.0 => dev                    

    _______________________________________________________

Follow-up Comment #2:

I ran the test case from comment #1 in Matlab R2020b.
The callback seems to execute on the release of the mouse button.

The button gets a blue-ish hue when it is selected. Even after releasing the
mouse button, the pushbutton keeps that color until I click somewhere else (in
the same figure or a different program).
However, I see the following in the command line while the button is still
blue-ish:

>> global h_b
>> get(h_b, 'Value')

ans =

  4×1 cell array

    {[0]}
    {[0]}
    {[0]}
    {[0]}


So the color change doesn't relate to the "Value" property.

It looks like Matlab executes the callback on the ButtonRelease event but
(just) before the "Value" property is updated.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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