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 Exchange에서 Develop 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