wxNumCtrl?

Pierre Hjälm wrote:

I hope you are aware that the wxIntCtrl that ships with 2.4.0.2 is
somewhat buggy. You can't enter negative numbers in the "normal" way.
If you try to enter '-','1','2','3' for example, it will stop
after the '1' (I believe it was), and then refuse any more input.

Funny, it works fine under MSW...

So, some questions:
- What platform are you using?
- Exactly what key sequence did you type?
- Was anything selected when you started?
- Where was your cursor when you started?
- Did you have any of the checkboxes selected in the demo?

(If there's really a problem, I'll be happy and eager to fix it,
but I need to be able to reproduce it first.)

Regards,
/Will Sadkin
Parlance Corporation

Will Sadkin <wsadkin@nameconnector.com> writes:

> Pierre Hjälm wrote:
> > I hope you are aware that the wxIntCtrl that ships with 2.4.0.2 is
> > somewhat buggy. You can't enter negative numbers in the "normal" way.
> > If you try to enter '-','1','2','3' for example, it will stop
> > after the '1' (I believe it was), and then refuse any more input.
>
> Funny, it works fine under MSW...
>
> So, some questions:
> - What platform are you using?

wxGTK, sorry I didn't mention that

> - Exactly what key sequence did you type?

In the demo, I first selected the "Set minimum value" button, then
clicked on the number control next to it, then pressed backspace
(which selected the 0), then tried to enter '-','1','2','3'.
I tested it right now, and it actually refuses any more input after
the '-', not the '1' as I said before.

After I press '-', the control changes the value to '-1' with
just the '1' selected. It works if I then (somehow) deselect the '1',
but that can't be the way it's supposed to work.

> - Was anything selected when you started?
> - Where was your cursor when you started?
> - Did you have any of the checkboxes selected in the demo?
>
See above.

···

--
  Pierre Hjälm, Systems Administrator
  Department of Information Science, Uppsala University, Sweden
  email:pierre.hjalm@dis.uu.se phone:+46-(0)18-4711044 fax:+46-(0)18-554422