Number as text input
-
- In need of some credit
- Posts: 4
- Joined: Wed Oct 03, 2018 12:29 pm
Number as text input
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?
-
- Super wx Problem Solver
- Posts: 469
- Joined: Tue Jun 20, 2006 6:47 pm
Re: Number as text input
It sounds like the control you're looking for is wxSpinCtrl.
-
- In need of some credit
- Posts: 4
- Joined: Wed Oct 03, 2018 12:29 pm
Re: Number as text input
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?
Is there a page with a collection of all widgets, so I don't need to ask?
-
- Moderator
- Posts: 1618
- Joined: Wed Nov 12, 2008 7:23 am
- Location: Romania
Re: Number as text input
Build 'widgets' sample; it has a lot of them used there if not all.r4nd0m6uy wrote:Is there a page with a collection of all widgets, so I don't need to ask?
-
- Part Of The Furniture
- Posts: 4204
- Joined: Sun Jan 03, 2010 5:45 pm
Re: Number as text input
The list of controls is here
https://docs.wxwidgets.org/trunk/group_ ... _ctrl.html
The master list is also useful
https://docs.wxwidgets.org/3.1/modules.html
https://docs.wxwidgets.org/trunk/group_ ... _ctrl.html
The master list is also useful
https://docs.wxwidgets.org/3.1/modules.html