Click Event
Example Applies To See Also
Occurs when you include code in a program that triggers the event, or when the user presses and releases the left mouse button while the pointer is over a control, changes the value of certain controls, or clicks in a blank area of a form.
Syntax
PROCEDURE Object.Click
[LPARAMETERS nIndex]
Arguments
nIndex
Uniquely identifies a control if it is in a control array.
Remarks
The Click event occurs when the user:
-
Clicks a check box, command button, combo box, list box, or option button with the left mouse button.
-
Presses the SPACEBAR when a command button, option button, or check box has the focus.
-
Presses ENTER when a form has a command button with its Default property set to true (.T.).
-
Presses the access key for a control. For example, if the caption of a command button is "\<Go", pressing ALT+G triggers the Click event.
-
Clicks a blank area of a form. Click events on a form do not occur when the pointer is over the title bar, the Window menu icon, or the window borders.
-
Clicks the text entry area of a spinner.
-
Clicks a disabled control. The Click event occurs for the form on which the disabled control is placed.
The Click event also occurs as a result of code you include that issues the MOUSE command.