Delphi:TAdjustor - a visual integer value editing control with fine/coarse adjustment buttons
Ever found yourself using a combination of Windows up/down(spinner) controls and edit boxes to provide for visual editing of integer values? TAdjustor provides a better solution. It has two sets of up/down buttons to allow for fine or coarse adjustment. The principal properties of TAdjustor are as follows
- BigAdjustment :Integer - The adjustment made to Position in response to clicks on the coarse up/down buttons.
- HexDisplay :Boolean - Set this to true to display Position in hexadecimal format.
- Maximum :Integer - The maximum allowed value for Position.
- Minimum :Integer - The minimum allowed value for Position.
- OnAdjust (Sender :TObject ;Position :Integer ) - The event triggered when Position is changed.
- Position :Integer - The current value of Position.
- PositionEx :Integer - Use this property to programmatically set Position without triggering the OnAdjust event.
- SmallAdjustment :Integer - The adjustment made to Position in response to clicks on the fine up/down buttons.
Usage:
Register TAdjustor in the components palette of the Delphi IDE. To do this, first open Adjustor.PAS, then select
DownloadInstall Componentfrom the
Componentmenu. Read the comments in Adjustor.PAS to configure it to your own needs.