Page 1 of 1

Number as text input

Posted: Mon Oct 08, 2018 1:28 pm
by r4nd0m6uy
Is there any component that permits having a number input like a text fiel, with min/max and two buttons to increase or decrease the value? I have a naive implementatiion with a wxTextCtrl but doesn't work as expected ... Any recommendation or should I write my own?

Re: Number as text input

Posted: Mon Oct 08, 2018 2:19 pm
by New Pagodi
It sounds like the control you're looking for is wxSpinCtrl.

Re: Number as text input

Posted: Mon Oct 08, 2018 2:36 pm
by r4nd0m6uy
Great, I was surprised that it didn't exist!

Is there a page with a collection of all widgets, so I don't need to ask?

Re: Number as text input

Posted: Mon Oct 08, 2018 3:38 pm
by catalin
r4nd0m6uy wrote:Is there a page with a collection of all widgets, so I don't need to ask?
Build 'widgets' sample; it has a lot of them used there if not all.

Re: Number as text input

Posted: Mon Oct 08, 2018 6:02 pm
by PB