Filter löschen
Filter löschen

Radio Button and Panel GUIDE

1 Ansicht (letzte 30 Tage)
Melvin
Melvin am 24 Feb. 2012
Kommentiert: asma arafat am 16 Mai 2017
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 Kommentar
Melvin
Melvin am 24 Feb. 2012
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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

G A
G A am 24 Feb. 2012
if (get(hObject,'Value') == get(hObject,'Max'))
set (handles.my_uipanel,'Visible','on');
else
set (handles.my_uipanel,'Visible','off');
end
  8 Kommentare
G A
G A am 27 Feb. 2012
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 am 16 Mai 2017
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by