Lazarus
Programming => LCL => Topic started by: jamie on September 20, 2020, 01:28:03 am
-
I find myself many times making a dual, triple or quad input type of a spin edit control where as it is separated by commas or boxes and the one that is high lighted is the one the spin edit arrows work on..
It sort of looks like a IPV4 input box setup.
What I do is have an array of limits for each field and the control auto displays depending on the length of these arrays.
I use this construct for editing Tsize, Tpoints, TRect etc
Does such a control already exists if not, should we or someone make one ?
-
In Lazarus-CCR there is ExCtlrs.
It hase several extensions of T(Float)SpinEditEx.
Feel free to submit something like that in Lazarus bugtracker (Lazarus-CCR section).
I think, you could maybe override SafeInc/SafeDec (from the top of my head).
Bart
-
Thanks, I will look into it.
-
For entering IPV4 or OPV6 adresses, I would personally go for a solution based on TMaskEdit.
Especially since now it has support for entering hexadecimals in the EditMask.
Bart