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