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 Class

Contains settings specific to time editors.

#Declaration

Delphi
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