ToggleButton focus question


#1

Whenever I click/focus on one of my toggle buttons a square gets drawn around it. Can I prevent this from happening and if not is there a simple look and feel method I can call to prevent the drawing of the surrounding box?


#2

It’s done in the look and feel, so you can change that to do whatever you like.


#3

That’s what I thought, I just can’t find the correct method to use. drawToggleButton() doesn’t seem to make any reference to the outline box. Actually, what is the correct name for the box that gets drawn around a toggle button, searching for the drawBoxThatGetsDrawnAroundTottgleButton() is coming up blank.


#4

Yeah, it’s right there at the start of LookAndFeel::drawToggleButton().