wxSpinCtrl with floating point values, how?
Carsten A. Arnholm
arnholm at offline.no
Fri Jun 22 02:24:51 PDT 2007
Kenneth Porter wrote:
> "Carsten A. Arnholm" <arnholm at offline.no> wrote in news:J-ednTqtacLXd-
> fbRVnzvAA at telenor.com:
>
>> 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.
>
> It's a problem if the underlying native control doesn't support that.
>
> In the use case you present, the decimal point is fixed, so it's
> probably better to call it a fixed point spin control.
Thanks for the reply. I take your point that deriving will not work if the
base class is using different native controls. It seems my issue was
resolved using John Labenski's wxSpinCtrlDbl, at least for the platforms I
am targeting (Win+Linux).
I am happy for the helpful and very quick replies!
Best regards
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list