wxSlider - Hiding the focus rectangle

Eric J Anderson lordmaiku at gmail.com
Sun Apr 8 08:36:21 PDT 2007


Hello,

I have a horizontal wxSlider in a panel. The slider works, but on 
Windows (at least) there is a distracting 'focus rectangle' drawn around 
the slider. I'd like to hide it somehow.

I have tried changing the foreground color (didn't work, but I didn't 
expect it to). I have also tried intercepting focus events to the 
control, to no avail. The strange thing is that the focus box is only 
drawn sometimes. I may have to launch the program 3 or 4 times before it 
is drawn.

Any help would be appreciated.

-- 
Eric J. Anderson





More information about the wx-users mailing list