Sub OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
//set of operators;
End Sub OnClick;
Sender. Parameter that returns the component that has generated the event.
Args. Parameter that enables the user to determine event parameters.
The OnClick event occurs if the user clicks the component area.
The event also occurs if:
For the components that change their state, the SPACE key is pressed when the component is focused.
The ENTER key is pressed, and the active form has a default button (the button, for which the DefaultButton property is set to True).
The ESC key is pressed, and the active form has an interrupt button (the button, for which the CancelButton property is set to True).
The keys of quick access to the component (hot keys) are pressed.
If the event was generated without using the mouse, the property of the argument of the Button event returns -1, and the pPoint property contains the coordinates [0;0].
See also: