IIntegerEdit.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 acceptable values border was broken.

By default the property is set to False, 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 acceptable values.

See also:

IIntegerEdit