Click

<< Click to Display Table of Contents >>

 

Click

Click()

This event occurs when the left mouse button is pressed on a Screen. This event does not occur if that Screen is not visible or if its Enabled property is set to False. Screen visibility depends on the Visible property set to True, on the parent object being visible, and on the object's Layer property on that Screen's layer. The next script contains an example of using this event.

Sub Screen_Click()
  ' Displays a message box when
  ' a user clicks a screen
  MsgBox "You clicked the screen."
End Sub

Was this page useful?