MouseUp Event
Description
The MouseUp event occurs when a button on the mouse has been released anywhere on the Shortcut Bar.
Syntax
Public Event MouseUp( _
ByVal [Button](#) As Integer, _
ByVal [Shift](#) As Integer, _
ByVal [x](#) As Long, _
ByVal [y](#) As Long _
)
Parameters
- Button: Code indicating which button on the mouse was pressed.
- Shift: Specifies whether the Shift, Ctrl, or ALT keys were pressed when the mouse button is released.
- x: X coordinate of the mouse pointer.
- y: Y coordinate of the mouse pointer.
Remarks
The MouseUp event only occurs when the mouse button is released over the Shortcut Bar. It will not occur when over the client pane or Shortcut Caption controls.
Below are the meanings of the mouse button codes:
| Button | Value |
|---|---|
| Left Mouse Button | 1 |
| Right Mouse Button | 2 |
Any combination of the Shift, Alt, and Ctrl keys can be used. The table below shows the possible values for the Shift parameter:
| Shift Parameter | Value | Bit Mask |
|---|---|---|
| Shift | 1 | 001 |
| Ctrl | 2 | 010 |
| Shift + Ctrl | 3 | 011 |
| Alt | 4 | 100 |
| Alt + Shift | 5 | 101 |
| Alt + Ctrl | 6 | 110 |
| Shift + Alt + Ctrl | 7 | 111 |
The picture below illustrates the area where the MouseUp event will occur when the mouse button is released:

See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.