Number as text input

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
r4nd0m6uy
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Oct 03, 2018 12:29 pm

Number as text input

Post 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?
New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 407
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: Number as text input

Post by New Pagodi »

It sounds like the control you're looking for is wxSpinCtrl.
r4nd0m6uy
In need of some credit
In need of some credit
Posts: 4
Joined: Wed Oct 03, 2018 12:29 pm

Re: Number as text input

Post 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?
catalin
Moderator
Moderator
Posts: 1601
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: Number as text input

Post 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.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 3135
Joined: Sun Jan 03, 2010 5:45 pm

Re: Number as text input

Post by PB »

Post Reply