Sign in Join
FPDoc Onlineexperiment

TSpinEdit.Value property

Member of TSpinEditpublishedIn unit Spin

The value for the spin edit control.

Declaration

pascal
property Value:;

Description

Value contains the value for the spin edit control. Its content can be modified using the UI elements for the control (up and down buttons, up and down cursor keys, edit box for the control). It can also be directly assigned in program code.

Changing the value for the property causes the Text for the control to be checked for a valid numeric representation in the property. If the new property value is the same as the existing value, no actions are performed.

When the property value has been stored, internal flags are set to ensure that Modified is updated accordingly and the private UpdateControl method in the ancestor is called. If the handle for the control has been allocated, the Change method in the ancestor is called to post a CM_CHANGED control message and signal OnChange handler(s) assigned for the control.

When changed, Value is constrained to the range defined in the MinValue and MaxValue properties (when assigned). The range limit is not enforced when MinValue and MaxValue have the same value, or when MaxValue is smaller than MinValue.

This description is the one of Spin.TCustomSpinEdit.Value.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.