Sub OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
//set of operators;
End Sub OnClick;
Sender. Parameters, that returns the component, generated an event.
Args. Parameter that allows to determine the event parameters.
The OnClick event occurs if a user clicks a component area using 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 key (the key for which the value of the DefaultButton property is set to True).
The Esc key is pressed, and active form has an interrupt key (the key 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: