Recent

Author Topic: Advanced TSpinEdit idea  (Read 1086 times)

jamie

  • Hero Member
  • *****
  • Posts: 6088
Advanced TSpinEdit idea
« 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 ?


« Last Edit: September 20, 2020, 01:44:01 am by jamie »
The only true wisdom is knowing you know nothing

Bart

  • Hero Member
  • *****
  • Posts: 5274
    • Bart en Mariska's Webstek
Re: Advanced TSpinEdit idea
« Reply #1 on: September 20, 2020, 11:51:17 am »
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

jamie

  • Hero Member
  • *****
  • Posts: 6088
Re: Advanced TSpinEdit idea
« Reply #2 on: September 20, 2020, 12:08:09 pm »
Thanks, I will look into it.
The only true wisdom is knowing you know nothing

Bart

  • Hero Member
  • *****
  • Posts: 5274
    • Bart en Mariska's Webstek
Re: Advanced TSpinEdit idea
« Reply #3 on: September 20, 2020, 10:18:41 pm »
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

 

TinyPortal © 2005-2018