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

# TCustomFloatSpinEdit.EditingDone

Performs actions when editing has been completed for the control.

## Declaration

Source position: spin.pp line 57

`protected procedure TCustomFloatSpinEdit.EditingDone; override;`

## Description

EditingDone is an overridden method in TCustomFloatSpinEdit. It ensures that the control is updated when editing has been completed.

EditingDone calls the UpdateControl method to normalize and validate the control Value using the assigned range in MinValue and MaxValue. This includes calling GetLimitedValue to update the control Value when both MinValue and MaxValue contain a valid range. The value in the widgetset class is updated when component streaming is not active, and the control is not being freed.

EditingDone calls the inherited method to signal the OnEditingDone event handler (when assigned) when ReadOnly is False.

EditingDone is called from the KeyUpAfterInterface method in TCustomEdit when the Enter (VK_RETURN) key code is handled for the control. It also occurs when the focused control has been changed.

## Version info

The method override was added in LCL version 2.2.1.

## See also

TCustomFloatSpinEdit.GetLimitedValue |  | Limits the specified value to the minimum and maximum values for the control.
TCustomFloatSpinEdit.Value |  | The floating point value for the spin edit control.
TCustomFloatSpinEdit.MinValue |  | Minimum value allowed in the spin edit control.
TCustomFloatSpinEdit.MaxValue |  | Maximum value allowed in the spin edit control.
TCustomEdit.EditingDone |  | Enforces the setting in the ReadOnly property when editing is finished in the control.
TControl.OnEditingDone |  | Event handler signalled when editing is completed for the control.