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

# TCustomFloatSpinEdit.Change

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

## Declaration

Source position: spin.pp line 56

`protected procedure TCustomFloatSpinEdit.Change; override;`

## Description

Change is an overridden method in TCustomFloatSpinEdit. It ensures that the value in Modified is updated when the widgetset class applies a new value for the control. An internal flag is used to determine if Modified is set to False prior to calling the inherited Change method. The flag is set when a new value is applied to the Value property in program code (instead of using the UI elements for the control). This is performed here because the widgetset class calls Changed and not TextChanged.

Change calls the inherited method where the CM_CHANGED control message is posted, and assigned OnChange handlers are signalled for the control.

## See also

TCustomEdit.Modified |  | True when the value in Text has been changed using the keyboard.
TCustomEdit.Change |  | Performs actions needed when the text in the control is changed.