Title says pretty much everything. I have found and figured out the routines to do so, in small scale.
What is TEditBox?
I can't be the only one making programs that wants a numbers as an input.
There are T(FloatSpinEdit) and if you have trunk T(Float)SpinEditEx.
They were designed for just this purpose.
Mind you, users will still be able to paste anything into the control.
(TMaskEdit prevents that (study the code to see how ugly that is), but in general is not the best control for your use case).
For TEdit, if you only want integers (no floats)
and you're on Windows, set NumbersOnly to True.
This works also for TSpinEdit(Ex), and it will on this platform not allow pasting non-numbers into the control.
Bart