RightDoubleClicked

The RightDoubleClicked event has different arguments for different objects:

Object

See

ListView and Tab control

Syntax 1 For ListView and Tab controls

TreeView control

Syntax 2 For TreeView controls


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

Arguments

Argument

Description

index

Integer by value (the index of the item or tab the user double-clicked)

Returns

Long. Return code choices (specify in a RETURN statement):

Examples

Example 1

This example deletes an item from the ListView when the user right-double-clicks on it and then rearranges the items:

integer li_rtn


// Delete the item

li_rtn = This.DeleteItem(index)


IF li_rtn = 1 THEN

   This.Arrange( )

ELSE

   MessageBox("Error", Deletion failed!")

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

Arguments

Argument

Description

handle

Long by value (the handle of the item the user double-clicked)

Returns

Long. Return code choices (specify in a RETURN statement):

Examples

Example 2

This example toggles between displaying and hiding TreeView lines when the user right-double-clicks on the control:

IF This.HasLines = FALSE THEN

   This.HasLines = TRUE

   This.LinesAtRoot = TRUE

ELSE

   This.HasLines = FALSE

   This.LinesAtRoot = FALSE

END IF

See also