wxSlider style wxSL_LABELS

Carsten A. Arnholm arnholm at offline.no
Sat Apr 28 02:36:50 PDT 2007


Hi,

wxMSW, wxWidgets 2.8.3

I am developing an application that needs quite a few horizontal sliders 
(wxSlider) in a modeless dialog. In the wxWidgets book ("Cross Platform GUI 
programming with wxWidgets"), on page 106 a wxSlider is shown with the min 
and max values at left and right of the slider and with the current value on 
the far left. This is what I want.

When I use the same code as in the book, using wxSL_LABELS I get a different 
look, with the min,max and current value on a line above the horizontal 
slider. This takes up more room and doesn't look good when you have several 
horizontal sliders above each other. It also makes the resulting dialog much 
bigger than it has to be, an important issue because the dialog is supposed 
to not cover a window with streaming video, on screens with relatively low 
resolution.

So is there a way for me to enforce the wxSlider look as shown on page 106 ?

-- 
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457 








More information about the wx-users mailing list