MATLAB GUI Pre-Selected button

2 ビュー (過去 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 Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by