|
|
|
SftButton.MouseDblClk Event |
A mouse button is double-clicked.
Syntax
VB.NET |
Private Sub object_MouseDblClkEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.MouseDblClkEvent |
||
VB |
Private Sub object_MouseDblClk(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS) |
||
C#.NET |
void object_MouseDblClkEvent(object sender, EventArgumentType e); |
||
VC++ |
void OnMouseDblClkobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos); |
||
C |
HRESULT OnMouseDblClkobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos); |
||
Delphi |
procedure objectMouseDblClk(Sender: TObject; Button : Smallint; Shift : Smallint; xPos : Integer; yPos : Integer); |
object
A SftButton object.
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.
Name |
Value |
Description |
1 |
Left button |
|
2 |
Right button |
|
4 |
Middle button |
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.
Name |
Value |
Description |
1 |
Shift |
|
2 |
Control |
|
4 |
Alt |
xPos
The x-coordinate of the mouse cursor. The units used depend on the container (Visual Basic uses TWIPS, Visual C++ uses pixels, etc.) and the coordinate system used.
yPos
The y-coordinate of the mouse cursor. The units used depend on the container (Visual Basic uses TWIPS, Visual C++ uses pixels, etc.) and the coordinate system used.
Comments
The MouseDblClk event occurs when a mouse button is double-clicked.
The DblClick and DropDownDblClick events should be used to determine whether the control has been double-clicked.
The MouseDblClk event can be used by an application to handle mouse button double clicks in combination with keyboard modifiers such as the SHIFT, CONTROL and ALT keys.
The HitTest method can be used to determine what area of the control is at a specific location.