get the Color of a Button

조회 수: 1 (최근 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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by