Skip to main content

TcxCustomTimeEditProperties Class

Contains settings specific to time editors.

Declaration

TcxCustomTimeEditProperties = class(
    TcxCustomSpinEditProperties
)

Remarks

This class extends the TcxCustomSpinEditProperties functionality by providing the TimeFormat, ShowDate, Use24HourFormat and UseTimeFormatWhenUnfocused properties. The TimeFormat property defines which portions of a time value (hours, minutes and seconds) are presented by the editor. The ShowDate property specifies whether to display the date along with time and the UseTimeFormatWhenUnfocused property specifies the display format of the value when the editor does not have focus. The Use24HourFormat property provides a choice between 24- and 12-hour formats. Use the AutoCorrectHours property to specify how the time editor handles incorrect values for the hour part of its time value.

To set settings for time editors, use the Properties member. For instance, to adjust settings for TcxCustomTimeEdit controls, use the TcxCustomTimeEdit.Properties member.

The TcxTimeEditProperties class derives from TcxCustomTimeEditProperties and publishes the necessary properties for TcxCustomTimeEdit descendants.

See Also