Skip to main content

TcxTimeEdit Class

Represents an editor displaying time values.

Declaration

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