GUI Button Highlights in Blue (When Clicked)
Mostra commenti meno recenti
Hi all,
I have a simple GUI with 3 buttons and 2 labels. When I click a button, Matlab automatically highlights it in this light blue metallic color. I want to deactivate this automatic highlighting mechanism. Anybody know how to do this?
Jeff
Risposte (1)
Paulo Silva
il 8 Set 2011
0 voti
See if the button has some code on his ButtonDownFcn, if there's some code in it remove it, also see the SelectionHighlight, turn it off
8 Commenti
Sean de Wolski
il 8 Set 2011
Could it also just be an OS setting?
Paulo Silva
il 8 Set 2011
I don't know Sean, it doesn't happen with my MATLAB
Jeff please check what you get by putting the next code on that pushbutton callback, execute the GUI and click on the pushbutton
get(HandlePushbutton)
%replace HandlePushbutton with the handle for the button that becomes blue
Copy what you get in the command line and show it to us
Jeff
il 8 Set 2011
Sean de Wolski
il 8 Set 2011
Is the GUI manually created or written in GUIDE? Did you write the code for the GUI?
Jeff
il 8 Set 2011
Jeff
il 8 Set 2011
Sean de Wolski
il 8 Set 2011
probably is an OS setting. I haven't used Windows 7 so I can't advise. If you make a second button or a second GUI or even just a questdlg does it occur?
>> questdlg('Does it occur below?','Test','yes','no')
Jeff
il 8 Set 2011
Categorie
Scopri di più su Graphics Performance in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!