Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTimeEditProperties.AutoCorrectHours Property

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

#Declaration

Delphi
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