Checking a GUI Checkbox 'Value'

16 次查看(过去 30 天)
Rick
Rick 2012-4-25
评论: Ana Silva 2017-12-7
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by