VLButtonBar Reference

Event MouseUp

See Also See Also Applies To Applies To

Occur when the user releases (MouseUp) a mouse button.

 

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 MouseUp 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 (MouseUp) 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
ConstantvlCaptionHit 0 mouse is on caption bar area.
ConstantvlCloseButtonHit 1 mouse is on close button on the caption bar.
ConstantvlGroupHit 2 mouse is on a group. hitItem parameter specifies the CGroup object.
ConstantvlButtonHit 3 mouse is on a button. hitItem parameter specifies the CButton object.
ConstantvlTLScrollButtonHit 4 mouse is on a Top or Left scroll button.
ConstantvlBRScrollButtonHit 5 mouse is on a Bottom or Right scroll button.
ConstantvlUnknownHit 6 mouse is in a unknown area.