[Overview][Classes][Procedures and functions][Index] Reference for unit 'Spin' (#lcl)

TCustomFloatSpinEdit.Value

The value for the spin edit control.

Declaration

Source position: spin.pp line 82

public property TCustomFloatSpinEdit.Value : Double
  read GetValue
  write SetValue;

Description

Value is a Double property which 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 is called. If the handle for the control has been allocated, the Change method is called to post a CM_CHANGED control message and signal OnChange handler(s) assigned for the control.

Value is constrained to the range defined in the MinValue and MaxValue properties.

See also

TCustomFloatSpinEdit.Change

  

Updates Modified prior to sending control messages and signalling OnChange handler(s).

TCustomFloatSpinEdit.MinValue

  

Minimal value allowed for the spin edit control.

TCustomFloatSpinEdit.MaxValue

  

Maximal value allowed for the spin edit control.

TCustomFloatSpinEdit.Increment

  

Amount applied to the control value when the up or down arrow button is pushed.

TCustomEdit.Modified

  

True when the value in Text has been changed.