How can I disable all of the objects in a "uibuttongroup" or "uipanel" at the same time?
Mostrar comentarios más antiguos
I would like to disable all of the objects located inside one of the container objects (uibuttongroup and uipanel). Is there a property of the container that does this?
Respuesta aceptada
Más respuestas (2)
Eric Sargent
el 9 de Dic. de 2020
Editada: MathWorks Support Team
el 6 de Dic. de 2024
1 voto
As of R2020b ButtonGroup and Panel both support Enable when the button group or panel is parented to a uifigure.
Wagih Abu Rowin
el 25 de Oct. de 2020
For Matlab App Designer 2018 and up you should use 'Enable','off' as:
% Here app.UIFigure is the main handel or container object
children = get(app.UIFigure,'Children');
set(children(isprop(children,'Enable')),'Enable','off')
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!