wxSpinCtrl with floating point values, how?

Carsten A. Arnholm arnholm at offline.no
Thu Jun 21 14:14:49 PDT 2007


Hi,

I use wxWidgets 2.8.4 on Windows XP and Linux/Kubuntu

I need to have a wxSpinCtrl that can use other values than integers in the 
text field, is that possible? For example, I would like to set a spinner 
increment to 0.1 and be able to get values 0.1, 0.2, 0.3 etc.

Is this possible using the existing wxSpinCtrl or would it perhaps be an 
idea to derive a wxSpinCtrlFloatingPoint from wxSpinCtrl to do it? Or 
perhaps do it some other way.


Thanks for your help
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457 








More information about the wx-users mailing list