wxSpinCtrl with floating point values, how?
Carsten A. Arnholm
arnholm at offline.no
Thu Jun 21 16:10:55 PDT 2007
"John Labenski" wrote:
> On 6/21/07, Carsten A. Arnholm <arnholm at offline.no> wrote:
>> 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.
>
> Ugh, I had offered to make one a while back, but I've been busy with
> other projects. You are however welcome to do it. :)
>
> You can use the wxSpinCtrlDbl from the wxthings component on
> wxcode.sourceforge.net. I recommend getting it from CVS and it is in
> the components/wxthings directory.
>
> Regards,
> John Labenski
Ohh....many thanks, that was quick! wxSpinCtrlDbl seems to do exactly what I
want, great! It even handles keyboard scrolling (up/down arrows) very
sensibly...
I am using Code::Blocks IDE/wxSmith and don't really know how to build or
handle such wxWidgets additions properly so I will include wxSpinCtrlDbl in
my Code::Blocks project for now (meaning I have to tweak some #include's).
That way I can also build it on Linux easily, since I just sync the source
and project files across and then build using the IDE.
I just tried wxSpinCtrlDbl on windows and linux and as far as I can see now
it is a complete solution! Not much to improve here.... very nice.
Regarding making contributions to wxCode... I don't quite feel competent
yet. And managing all the new tools is already quite a task!
Regards
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list