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

TcxDBTimeEdit Class

Represents a data-aware editor which enables editing time values.

#Declaration

Delphi
TcxDBTimeEdit = class(
    TcxCustomTimeEdit
)

#Remarks

A time editor allows editing time values of the TDateTime type. TDateTime represents a floating-point value. The fractional part of a TDateTime value identifies the time portion (fraction of a 24 hour day that has elapsed). TcxDBTimeEdit is similar to the TcxTimeEdit control except that it enables editing date-time dataset fields. A user can edit a time value either by typing it or by changing it with the help of spin buttons. Spin buttons allow incrementing and decrementing the selected time value portion: hours, minutes, seconds. The following image demonstrates a time edit painted in the native style:

To adjust settings specific to time editors, use the Properties object 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 manage the look & feel of an editor. Working with styles is discussed in the TcxCustomEditStyle class topic.

The DataBinding property defines a dataset connection. To connect a data-aware editor, you need to set the DataSource and DataField properties of the DataBinding object.

See Also