event CellImageClick (Group as Group, Item as HITEM, ColIndex as Long)
Fired after the user clicks on the image's cell area.

 TypeDescription 
   Group as Group A Group object where the user clicks an icon.  
   Item as HITEM A long expression that indicates the handle of the item where the user clicks the cell's icon.  
   ColIndex as Long A long expression that indicates the index of the column where the user clicks the cell's icon, or a long  expression that indicates the handle of the cell being clicked, if the Item parameter is 0.  
The CellImageClick event is fired when user clicks on the cell's icon. Use the CellImage property to assign an icon to a cell. Use the CellImages property to assign multiple icons to a cell.

The following sample displays the caption of the cell whose icon is clicked:

Private Sub ExplorerTree1_AddItem(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM)
    With Group.Items
        .CellImage(Item, 0) = 1
    End With
End Sub

Private Sub ExplorerTree1_CellImageClick(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM, ByVal ColIndex As Long)
    With Group.Items
        MsgBox .CellCaption(Item, ColIndex)
    End With
End Sub


Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.