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

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

[Octave-bug-tracker] [bug #56401] get(hObject, 'Value') in pushbutton ca


From: Rik
Subject: [Octave-bug-tracker] [bug #56401] get(hObject, 'Value') in pushbutton callback returns logical 0
Date: Mon, 27 May 2019 23:49:38 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #4, bug #56401 (project octave):

According to Matlab documentation, the "Value" field is not used for
pushbuttons.  See https://www.mathworks.com/help/matlab/ref/uicontrol.html.


Current value, specified as a number. Use to query or modify the status of
certain user interface controls.

The table describes the Value property in relation to specific UIControl
styles.

Style Property  Description of Value Property
'togglebutton'  

    Selected: Value of the Max property.

    Cleared: Value of the Min property.

'checkbox'      

    Selected: Value of the Max property.

    Cleared: Value of the Min property.

'radiobutton'   

    Selected: Value of the Max property.

    Cleared: Value of the Min property.

'slider'        Value associated with the thumb location along the slider bar.

'listbox'       Array index corresponding to the selected item in the list box. 
A
value of 1 (default) corresponds to the first item in the list. When multiple
items are selected, the Value property stores the row indexes as a vector.

'popupmenu'     Array index corresponding to the selected item in the pop-up 
menu.
A value of 1 (default) corresponds to the first item in the pop-up menu.


It seems like Matlab has chosen a value of '1' to return, and Octave '0', but
neither is significant.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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