RightDoubleClicked event
The RightDoubleClicked event has different arguments
for different objects:
|
Object |
See |
|---|---|
|
ListView and Tab control |
|
|
TreeView control |
Syntax 1 For ListView and Tab controls
Description
Occurs when the user double-clicks the right mouse button
on the ListView control or the tab portion of the Tab control.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_lvnrdoubleclicked |
ListView |
|
pbm_tcnrdoubleclicked |
Tab |
Parameters
|
Argument |
Description |
|---|---|
|
index |
Integer by value |
Return Values
Long. Return code choices (specify in
a RETURN statement):
-
0 Continue
processing
Examples
This example deletes an item from the ListView when
the user right–double–clicks on it and then rearranges
the items:
|
1 |
integer li_rtn |
|
1 |
|
1 |
// Delete the item |
|
1 |
li_rtn = This.DeleteItem(index) |
|
1 |
|
1 |
IF li_rtn = 1 THEN |
|
1 |
   This.Arrange( ) |
|
1 |
ELSE |
|
1 |
   MessageBox("Error", Deletion failed!") |
|
1 |
END IF |
See Also
Syntax 2 For TreeView controls
Description
Occurs when the user double-clicks the right mouse button
on the TreeView control.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_tvnrdoubleclicked |
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 toggles between displaying and hiding
TreeView lines when the user right-double-clicks on the control:
|
1 |
IF This.HasLines = FALSE THEN |
|
1 |
   This.HasLines = TRUE |
|
1 |
   This.LinesAtRoot = TRUE |
|
1 |
ELSE |
|
1 |
   This.HasLines = FALSE |
|
1 |
   This.LinesAtRoot = FALSE |
|
1 |
END IF |