MATLAB GUI Pre-Selected button

조회 수: 3 (최근 30일)
Horace
Horace 2013년 1월 31일
Hi,
I have added some toolbar buttons on my GUI but as usual they are by default deselected. However, I would like to set one of the tools to be selected by default when the GUI is started. Is this possible?
Horace

채택된 답변

Sean de Wolski
Sean de Wolski 2013년 1월 31일
편집: Sean de Wolski 2013년 1월 31일
If you are using a uitoggletool(), which is what it sounds like, set its 'state' to 'on'.
h = uitoggletool('cdata',rand(16,16,3));
set(h,'State','on')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by