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

TcxTimeEdit Class

Represents an editor displaying time values.

#Declaration

Delphi
TcxTimeEdit = class(
    TcxCustomTimeEdit
)

#Remarks

The TcxTimeEdit class represents an editor which allows editing time values by typing directly or via spin buttons (up and down arrows). Spin buttons increment or decrement the time value portion (hours, minutes or seconds) a user indicates with the cursor. The following image demonstrates the time edit painted in the native style:

To set/get a time value, use the Time property of type TTime.

The Properties object defines settings specific to time editors and this allows you to define the time format, value alignment, read-only status and many others. Use the Style, StyleDisabled, StyleFocused and StyleHot properties to adjust the look & feel of an editor. Working with styles is discussed in the TcxCustomEditStyle class topic.

See Also