The DoubleClicked event has different arguments for different objects:
Object |
See |
---|---|
ListBox, ListView, and Tab controls |
|
TreeView control |
|
Window |
|
Other controls |
For information about the DataWindow control’s DoubleClicked event, see the DataWindow Reference or the online Help.
Occurs when the user double-clicks on the control.
Event ID |
Objects |
---|---|
pbm_lbndblclk |
ListBox |
pbm_lvndoubleclicked |
ListView |
pbm_tcndoubleclicked |
Tab |
Argument |
Description |
---|---|
index |
Integer by value. The index of the item the user double-clicked (for tabs, the index of the tab page). |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
In a ListBox, double-clicking on an item also triggers a SelectionChanged event.
Using the ItemActivate event for ListView controls You can use the ItemActivate event (with the OneClickActivate property set to false) instead of the DoubleClicked event for ListView controls.
This example uses the DoubleClicked event to begin editing the double-clicked ListView item:
This.EditLabels = TRUE
Occurs when the user double-clicks on the control.
Event ID |
Objects |
---|---|
pbm_tvndoubleclicked |
TreeView |
Argument |
Description |
---|---|
handle |
Long by value (the handle of the item the user double-clicked) |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
This example turns on editing for the double-clicked TreeView item:
TreeViewItem ltvi_current
ltvi_current = tv_1.FindItem(CurrentTreeItem!, 0)
This.EditLabel(ltvi_current)
Occurs when the user double-clicks in an unoccupied area of the window (any area with no visible, enabled object).
Event ID |
Objects |
---|---|
pbm_lbuttondblclk |
Window |
Argument |
Description |
---|---|
flags |
UnsignedLong by value (the modifier keys and mouse buttons that are pressed). Values are:
In the Clicked event, the left mouse button is being released, so 1 is not summed in the value of flags. For an explanation of flags, see Syntax 2 of MouseMove. |
xpos |
Integer by value (the distance of the pointer from the left edge of the window’s workspace in pixels). |
ypos |
Integer by value (the distance of the pointer from the top of the window’s workspace in pixels). |
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
The xpos and ypos arguments provide the same values the functions PointerX and PointerY return when you call them for the window.
Occurs when the user double-clicks on the control.
Event ID |
Objects |
---|---|
pbm_bndoubleclicked |
Graph, Picture, PictureHyperLink, StaticText, StaticHyperLink |
pbm_prndoubleclicked |
HProgressBar, VProgressBar |
None
Long. Return code choices (specify in a RETURN statement):
0 Continue processing
The DoubleClicked event for DropDownListBoxes is only active when the Always Show List property is on.