How to disable a panel in GUIDE ?

7 Ansichten (letzte 30 Tage)
Avi Pal
Avi Pal am 14 Mär. 2012
Beantwortet: Eric Sargent am 9 Dez. 2020
i have a panel with a no. of push buttons and other test fields, and i want to disable them till a radio button is selected; So, how can disable an entire panel without going for each component and disable them separately ??
I am using Matlab 2011a.
  1 Kommentar
Eric Sargent
Eric Sargent am 9 Dez. 2020
As of R2020b ButtonGroup and Panel both support Enable when the button group or panel is parented to a uifigure.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Mär. 2012
You could set() the entire uipanel to have Visible 'off'
But if you want the panel to be still visible, then
set(findall(PanelHandle, '-property', 'enable'), 'enable', 'off')
  15 Kommentare
Image Analyst
Image Analyst am 4 Sep. 2017
OK, good. So I assume it's working now.
Walter Roberson
Walter Roberson am 4 Sep. 2017
Please post a small example that demonstrates the problem.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Eric Sargent
Eric Sargent am 9 Dez. 2020
As of R2020b ButtonGroup and Panel both support Enable when the button group or panel is parented to a uifigure.

Kategorien

Mehr zu Develop uifigure-Based Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by