IFloatEdit.CorrectOnExit

Syntax

CorrectOnExit: Boolean;

Description

The CorrectOnExit property determines whether value is automatically corrected when the component loses focus.

Comments

If the property is set to True, the value is corrected after entering incorrect value and on losing focus by the component. The value is corrected by setting one of the MinValue or MaxValue values as the value, depending on which available values border was broken.

The property is set to False by default, and if incorrect value is entered, this value is not reset after the component loses focus. But it is highlighted in red indicating that it falls outside the limits of available values.

See also:

IFloatEdit