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 with the main mouse button.
The event also occurs if:
For the components that change their state, the Space bar is pressed, when the component is in focus.
The ENTER key is pressed, and active form has a default button (the button, for which the value of the DefaultButton property is set to True).
The ESC key is pressed, and active form has an interrupt button (the button, for which the value of 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: