MATLAB GUI Pre-Selected button

3 views (last 30 days)
Horace
Horace on 31 Jan 2013
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

Accepted Answer

Sean de Wolski
Sean de Wolski on 31 Jan 2013
Edited: Sean de Wolski on 31 Jan 2013
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')

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!