How to disable a panel in GUIDE ?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Avi Pal
le 14 Mar 2012
Réponse apportée : Eric Sargent
le 9 Déc 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 commentaire
Eric Sargent
le 9 Déc 2020
As of R2020b ButtonGroup and Panel both support Enable when the button group or panel is parented to a uifigure.
Réponse acceptée
Walter Roberson
le 14 Mar 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 commentaires
Plus de réponses (1)
Eric Sargent
le 9 Déc 2020
As of R2020b ButtonGroup and Panel both support Enable when the button group or panel is parented to a uifigure.
0 commentaires
Voir également
Catégories
En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!