OnClick

Syntax

Sub OnClick(Sender: Object; Args: IMouseEventArgs);

Begin

//set of operators;

End Sub OnClick;

Parameters

Sender. Parameters, that returns the component, generated an event.

Args. Parameter that allows to determine the event parameters.

Description

The OnClick event occurs if a user clicks a component area using the main mouse button.

Comments

The event also occurs, if:

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:

IControl