Occurs when the user presses a component’s button.
There are two variants of the event:
Declaration
| Sender | [in] | Required | Object |
| Sender | [in] | Required | Object | |
| AButtonIndex | [in] | Required | Integer |
Applies To
The event is used by the following components:
Description
The first variant of the OnButtonClick event is used by the TcxMRUEdit component. The second variant is used by the TcxButtonEdit component.
TcxMRUEdit
The TcxMRUEdit component contains two buttons: the ellipsis button and the down-arrow button. The OnButtonClick event occurs when the user presses the component's ellipsis button. Create an OnButtonClick event handler to process pressing of the ellipsis button. For instance, if the TcxMRUEdit component is used to specify file names, the event handler will display the Open File dialog.
Parameters
The event version used by the TcxMRUEdit component has the following parameters:
Sender
TcxButtonEdit
The TcxButtonEdit component may contain several buttons. The OnButtonClick event occurs when the user presses any of these buttons. Create an OnButtonClick event handler to perform specific actions in response to pressing the button.
Parameters
The event version used by the TcxButtonEdit component has the following parameters:
Sender
AButtonIndex
