Radio Button and Panel GUIDE
이전 댓글 표시
What code should i write under a callback of the radio button when you want to click a radio button, the visibility of the panel is being controlled. Radio button clicked, Panel appears. Radio Button unclick, panel hides...what do you think? Thank you everyone
답변 (1개)
G A
2012년 2월 24일
0 개 추천
if (get(hObject,'Value') == get(hObject,'Max'))
set (handles.my_uipanel,'Visible','on');
else
set (handles.my_uipanel,'Visible','off');
end
댓글 수: 8
Melvin
2012년 2월 24일
Melvin
2012년 2월 24일
G A
2012년 2월 24일
may be you have to use this line:
if (get(hObject,'Value') == get(hObject,'Max'))
"Radio buttons set Value to Max when they are on (when selected) and Min when off (not selected)."
http://www.mathworks.co.uk/help/techdoc/creating_guis/f16-999044.html#f16-1003665
Melvin
2012년 2월 24일
G A
2012년 2월 24일
I have edited the code above
Melvin
2012년 2월 25일
G A
2012년 2월 27일
Instead of checking for Value 1 or 0 (true or false), for radio button you have to check for Value 'Max' or 'Min'
asma arafat
2017년 5월 16일
hello, i want to show panel with some texts when i click push button only and hide it when i am not click it. any help? thanks
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!