Integer Input Control for Xojo

Updated: Mar 30

A simple Container Control with logic to allows you to get integer values from your users. Users can type in numbers or use the buttons to increment/decrement their selection.

The Integer Input Control, in dark mode and light mode.


 

 

This came about because I was looking for a more elegant way of getting integer values on a window than a regular text field. For the life of me, I can not ever get Validation Masks to work the way I'd expect, plus a regular text field is just not the most user-friendly way to enter numbers to begin with.
 

 

In the past, we've seen Number Pickers using a TextField and the UpDown controls, but these always rubbed me the wrong way. They're confusing to novice users, they invite misclicks even from experienced users, they prompt for typing (which isn't necessarily a bad thing, but it's not very user friendly), and can be pretty unclear. You can build one in Xojo fairly easily though, so they get used by default a lot.
 

 
Well, that's where this comes in.

I am releasing this control as open-source to the Xojo community.
 

Update History
 
Version 1.1.0 - Improved typing logic

Version 1.0.0 - Initial Release