|
This event is triggered when the user presses a mouse button on the control.
Syntax
Private Sub object _MouseUp([index As
Integer,] button As Integer, shift As Integer,
x As Single, y As Single, ByVal eHitType As
vlHitType, hitItem As Object)
The MouseDown event syntax has these parts:
|
Part |
Description |
| object |
An object expression that evaluates to an object in the Applies to list. |
|
index
|
Returns an integer that uniquely identifies a control if it's in a control
array. |
|
button
|
Returns an integer that identifies the button that was pressed (MouseDown) or
released (MouseUp) to cause the event. The button argument is a bit field with
bits corresponding to the left button (bit 0), right button (bit 1), and middle
button (bit 2). These bits correspond to the values 1, 2, and 4, respectively.
Only one of the bits is set, indicating the button that caused the event. |
|
shift
|
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 or released. A
bit is set if the key is down. The shift argument is a bit field with the
least-significant bits corresponding to the SHIFT key (bit 0), the CTRL key
(bit 1), and the ALT key (bit 2 ). These bits correspond to the values 1, 2,
and 4, respectively. The shift argument indicates the state of these keys.
Some, all, or none of the bits can be set, indicating that some, all, or none
of the keys are pressed. For example, if both CTRL and ALT were pressed, the
value of shift would be 6. |
|
x, y
|
Returns a number that specifies the current location of the mouse pointer. The
x and y values are always expressed in terms of the coordinate system set by
the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties of the object. |
|
eHitType
|
An integer that specifies the type of item hit, i.e. described in settings. |
|
hitItem
|
an object expression which specifies the item. |
Settings
The settings for eHitType are:
|
Constant |
Setting |
Description |
vlCaptionHit |
0 |
mouse is on caption bar area. |
vlCloseButtonHit |
1 |
mouse is on close button on the caption bar. |
vlGroupHit |
2 |
mouse is on a group. hitItem parameter specifies the CGroup
object. |
vlButtonHit |
3 |
mouse is on a button. hitItem parameter specifies the CButton object. |
vlTLScrollButtonHit |
4 |
mouse is on a Top or Left scroll button. |
vlBRScrollButtonHit |
5 |
mouse is on a Bottom or Right scroll button. |
vlUnknownHit |
6 |
mouse is in a unknown area. |
|