Radio Button and Panel GUIDE

1 次查看(过去 30 天)
Melvin
Melvin 2012-2-24
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 个评论
Melvin
Melvin 2012-2-24
the panel---i mean a panel you created on a gui...so only two objects are present on the gui. The radio button and a panel...thank you

请先登录,再进行评论。

回答(1 个)

G A
G A 2012-2-24
if (get(hObject,'Value') == get(hObject,'Max'))
set (handles.my_uipanel,'Visible','on');
else
set (handles.my_uipanel,'Visible','off');
end
  8 个评论
G A
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
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

请先登录,再进行评论。

类别

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