GUI Button Highlights in Blue (When Clicked)

5 Ansichten (letzte 30 Tage)
Jeff
Jeff am 8 Sep. 2011
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

Antworten (1)

Paulo Silva
Paulo Silva am 8 Sep. 2011
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 Kommentare
Sean de Wolski
Sean de Wolski am 8 Sep. 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
Jeff am 8 Sep. 2011
Yes. It's an OS setting I think. I've tried going into advanced system settings -> performance settings -> unchecked "use visual styles on windows and buttons", and this eliminates the highlight problem. However, this also makes the rest of the GUI look tacky and the buttons have no borders at all, which makes them look like labels. And when you click on a button, a dotted black border surrounds the button which is also distracting. Anyone know how to disable just the Win 7 highlight visual effect but keep everything else?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by