Skip to main content

TcxDBButtonEdit Class

Represents a data-aware edit control with embedded buttons.

Declaration

TcxDBButtonEdit = class(
    TcxCustomButtonEdit
)

Remarks

The TcxDBButtonEdit control allows editing the contents of a text dataset field. An editor provides a collection of buttons. It is accessible via the Buttons member of the Properties object. The following image demonstrates a button edit with two buttons (the custom and the ellipsis buttons) painted in the native style:

When a user clicks a button or presses the ClickKey keystroke, the Properties object generates an OnButtonClick event. You can implement editor behavior depending on your needs by handling this event. Properties contains various attributes specific to button editors: text alignment, mask for entering values, the auto select feature and many others. Use the Style, StyleDisabled, StyleFocused and StyleHot properties to adjust the look & feel of an editor in various control’s states. Working with styles is discussed in the TcxCustomEditStyle class topic.

To connect a data-aware control to a dataset set the DataSource and DataField properties of the DataBinding object.

See Also