|
BeforeClick (Event)
Occurs when the user presses and then releases a mouse button in the drawing
Syntax:
Private Sub object_BeforeClick(Sender As System.Object, e As BeforeClickEventArgs)
The BeforeClick event syntax has the following parts:
Argument
|
Data Type
|
Description
|
Sender
|
System.Object
|
Is the object that raises the event
|
e.Button
|
Short
|
Returns an integer that identifies the button that was pressed
|
e.Shift
|
Short
|
Returns an integer that corresponds to the state of the SHIFT, CTRL, and ALT keys when the button specified in the button argument is pressed
|
e.x
|
Integer
|
Is the coordinates x of the click's location
|
e.y
|
Integer
|
Is the coordinates y of the click's location
|
e.ClickType
|
AvaxClickType
|
Is the command that is associated with the click
|
e.fCancel
|
Boolean
|
This event trigger can be canceled by changing this parameter to true
|
Example
|