get the Color of a Button
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Max Müller
el 4 de Ag. de 2014
Respondida: Image Analyst
el 4 de Ag. de 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 comentarios
Respuesta aceptada
Image Analyst
el 4 de Ag. de 2014
Can't you simply use get()?
buttonColor = get(handles.buttonB, 'ForegroundColor');
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!