How to force button in GUI
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, i have a button group in GUI and whenever i press a button i want one specific button to be automatically selected. how can i do it?
thanks
2 commentaires
Réponse acceptée
Jan
le 29 Mar 2017
You can set the 'Value' of another GUI element in the callback of the pressed button. This does not trigger the callback of the changed element.
Please post the code of the callback, such that we can suggest matching code more easily.
3 commentaires
Adam
le 30 Mar 2017
Modifié(e) : Adam
le 30 Mar 2017
'SelectedObject' is the property you want, but you need to set it to the object handle, not the tag. Or you can do some stuff with string comparisons and set the 'Value' I guess to 0 or 1 accordingly I guess (or 1 or 2, I've forgotten if radiobuttons index from 0 or 1)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks 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!