フィルターのクリア

get the Color of a Button

2 ビュー (過去 30 日間)
Max Müller
Max Müller 2014 年 8 月 4 日
回答済み: Image Analyst 2014 年 8 月 4 日
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

採用された回答

Image Analyst
Image Analyst 2014 年 8 月 4 日
Can't you simply use get()?
buttonColor = get(handles.buttonB, 'ForegroundColor');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by