event CellButtonClick (Group as Group, Item as HITEM, ColIndex as Long)
Fired after the user clicks on the cell of button type.

 TypeDescription 
   Group as Group A Group object where user clicks a button.  
   Item as HITEM A long expression that indicates the handle of the item where the user clicks the cell's button.  
   ColIndex as Long A long expression that specifies the index of the column where the user clicks the cell's button, or a long  expression that indicates the handle of the cell being clicked, if the Item parameter is 0.  
The CellButtonClick event is fired after the user released the left mouse button over a cell of button type.  Use the CellHasButton property to specify whether a cell is of button type. The CellButtonClick event notifies your application that user presses a cell of the button type.

The following sample prints the caption of the clicked cell:

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

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


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