get the Color of a Button
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Max Müller
le 4 Août 2014
Réponse apportée : Image Analyst
le 4 Août 2014
Hey Guys,
I ve created a GUI with GUIDE, which holds 2 Buttons. Lets call them A and B. Furthermore, I ve created a Code which makes B change its color everytime u hit the Button. Now I need a Code for A, which gets the Color of B.
Thanks
0 commentaires
Réponse acceptée
Image Analyst
le 4 Août 2014
Can't you simply use get()?
buttonColor = get(handles.buttonB, 'ForegroundColor');
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Migrate GUIDE 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!