|
|
|
SftBox.MouseUp Event |
A mouse button is released.
Syntax
VB.NET |
Private Sub object_MouseUpEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.MouseUpEvent |
||
VB |
Private Sub object_MouseUp(ByVal Part As SftBoxPortionConstants, ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS) |
||
C#.NET |
void object_MouseUpEvent(object sender, EventArgumentType e); |
||
VC++ |
void OnMouseUpobject(enum SftBoxPortionConstants Part, short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos); |
||
C |
HRESULT OnMouseUpobject(enum SftBoxPortionConstants Part, short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos); |
||
Delphi |
procedure objectMouseUp(Sender: TObject; Part : TOleEnum; Button : Smallint; Shift : Smallint; xPos : Integer; yPos : Integer); |
object
A SftBox object.
Part
Describes the area where the mouse button was clicked.
Part |
Value |
Description |
1 |
||
2 |
||
3 |
Button
Describes the button(s) that are pressed. The Button argument is a bit field with bits corresponding to the left button, right button and middle button. These bits correspond to the values shown below. The bits set indicate the button that caused the event.
Button |
Value |
Description |
1 |
The left mouse button was pressed. |
|
2 |
The middle mouse button was pressed. |
|
4 |
The right mouse button was pressed. |
Shift
Describes the state of the SHIFT, CONTROL and ALT keys. A bit is set if the key is down. The Shift argument is a bit field with bits corresponding to the SHIFT, CONTROL and ALT keys. It indicates the state of these keys. Some, all, or none of the bits can be set, indicating which of the keys are pressed.
Shift |
Value |
Description |
1 |
The SHIFT key is down. |
|
2 |
The CONTROL key is down. |
|
4 |
The ALT key is down. |
xPos
The x coordinate of the mouse cursor. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
yPos
The y coordinate of the mouse cursor. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
Comments
The MouseUp event occurs when a mouse button is released.
The MouseUp event can be used by an application to handle mouse button clicks in combination with keyboard modifiers such as the SHIFT, CONTROL and ALT keys.
The ItemClick event should be used if specific information about the logical position of the mouse cursor is needed.