Filter löschen
Filter löschen

Checking a GUI Checkbox 'Value'

16 Ansichten (letzte 30 Tage)
Rick
Rick am 25 Apr. 2012
Kommentiert: Ana Silva am 7 Dez. 2017
If I have a few Gui checkbox statements, how do I check the values of them to see if they changed from my original default setting ?? Here is what I used for my first checkbox statement:
h.checkbox1 = uicontrol(current_f,'Style','checkbox', 'Value',1)

Akzeptierte Antwort

Jan
Jan am 25 Apr. 2012
Then:
value = get(h.checkbox1, 'Value');
If you want to store the initial value of the checkbox, you could use either the handles struct or the UserData of the uicontrol.
  2 Kommentare
Rick
Rick am 25 Apr. 2012
Thank you Dude....... You DA Man !!!!!!!!!
Ana Silva
Ana Silva am 7 Dez. 2017
how do I get the value from the checkbox after being selected?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by