Checking a GUI Checkbox 'Value'

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)

 採用された回答

Jan
Jan 2012 年 4 月 25 日

4 投票

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 件のコメント

Rick
Rick 2012 年 4 月 25 日
Thank you Dude....... You DA Man !!!!!!!!!
Ana Silva
Ana Silva 2017 年 12 月 7 日
how do I get the value from the checkbox after being selected?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

質問済み:

2012 年 4 月 25 日

コメント済み:

2017 年 12 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by