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

TcxCustomTimeEdit Class

Serves as the base class for classes that implement editors displaying time.

#Declaration

Delphi
TcxCustomTimeEdit = class(
    TcxCustomSpinEdit
)

#Remarks

This class provides the base functionality for time editors (such as TcxTimeEdit). It is inherited from the TcxCustomSpinEdit class, which introduces the capability of editing values via spin buttons. The TcxCustomTimeEdit class declares a Time property, of type TTime, containing time values. A user can edit a time value either by typing it or by changing it with the help of spin buttons. Spin buttons allow the incrementing and decrementing of a selected time value portion: hours, minutes or seconds.

To adjust settings specific to time editors, use the Properties object. The Properties property 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.

Do not create instances of TcxCustomTimeEdit. Use its descendants such as TcxTimeEdit or TcxDBTimeEdit instead.

See Also