How to limit a wxSpinCtrl to certain values
Carsten A. Arnholm
arnholm at offline.no
Tue Mar 27 03:37:54 PDT 2007
"Guillermo Torreiro" wrote:
> Did you try with wxSpinCtrl::SetRange ?
>
> (http://www.wxwidgets.org/manuals/stable/wx_wxspinctrl.html#wxspinctrl)
Hello,
On a related note, is it possible to use this to control floating point
values in a field with a spin control? I.e. pressing the up arrow gives
values like 1.2, 1.3 and 1.4 etc.
I have done this in MFC by overloading OnVscroll in a dialog (if I remember
correctly). I would like to do the same in wxWidgets but it is unclear to me
whether it is possible.
Regards
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list