Filter löschen
Filter löschen

get the Color of a Button

2 Ansichten (letzte 30 Tage)
Max Müller
Max Müller am 4 Aug. 2014
Beantwortet: Image Analyst am 4 Aug. 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

Akzeptierte Antwort

Image Analyst
Image Analyst am 4 Aug. 2014
Can't you simply use get()?
buttonColor = get(handles.buttonB, 'ForegroundColor');

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by