wxSlider: how do I set increment ?

Hi all,
  I am using wxGTK 2.4.0 and I would like to use a wxSlider from 0 to 1 by increments of 0.1. How do I do this ?

  As I browse through the code I saw that the increment is hardcoded :
line 186:
     m_adjust->step_increment = 1.0;

What did I misunderstood ?

thanks,
mathieu

···

--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/

--- Mathieu Malaterre wrote:

I am using wxGTK 2.4.0 and I would like to use a wxSlider from 0
to 1 by increments of 0.1. How do I do this ?

As I browse through the code I saw that the increment is
hardcoded :
line 186:
     m_adjust->step_increment = 1.0;

What did I misunderstood ?

thanks,
mathieu

At least in wxPython (don't know about wxWindows) I think the
slider has integer values only. What I often do is to use scaled
integer values (say 0 to 10) and then divide by ten, for example,
before displaying the value. (I may be wrong about it being integer
only, though.)

···

=====
Donnal Walter
Arkansas Children's Hospital