Skip to main content

TcxCustomTimeEditProperties.AutoCorrectHours Property

Indicates whether incorrect entries for the hour part of the edit value’s time value are corrected automatically.

Declaration

property AutoCorrectHours: Boolean read; write; default True;

Property Value

Type Default
Boolean True

Remarks

The time editor prevents users from entering incorrect values for the hour part of the time value. A value outside of the hour portion’s value range (0 to 23 or 12 for a time editor which uses 24- or 12-hour format, respectively) is treated as an incorrect value. Use the AutoCorrectHours property to explicitly specify exactly how the time editor handles an incorrect value which is entered into the time portion of its edit value.

Set the AutoCorrectHours property to True to specify that incorrect values have to be replaced with the maximum value possible for the current hour portion’s value range. Otherwise, the keystroke (which would cause an incorrect value to be entered) is ignored.

The default value of the AutoCorrectHours property is True.

See Also