How to hide/unhide button group using callbacks in Push button?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Pravin Kokane
le 20 Fév 2017
Commenté : Pravin Kokane
le 20 Fév 2017
I am trying to unhide visibility of Button Group ,but I am getting error as "Error using matlab.ui.container.ButtonGroup/set There is no Enable property on the ButtonGroup class." How to unhide it ?
0 commentaires
Réponse acceptée
Image Analyst
le 20 Fév 2017
Use the Visible property instead
handles.buttongroup1.Visible = 'off' % or 'on'
0 commentaires
Plus de réponses (1)
Jan
le 20 Fév 2017
Following the docs of uibuttongroup, you can set the Visibility to 'on' and 'off'. Look at the example:
bg = uibuttongroup('Visible','off', ...
...
bg.Visible = 'on';
Where does the 'Enable' come from? Please show the code, which causes an error, to allow the readers to suggest an improvement.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!