event CellStateChanged (Group as Group, Item as HITEM, ColIndex as Long)
Fired after cell's state is changed.

 TypeDescription 
   Group as Group A Group object where the user clicks a check box cell.   
   Item as HITEM A long expression that indicates the handle of the item where the cell's state is changed.   
   ColIndex as Long A long expression that indicates the index of the column where the cell's state is changed, or a long  expression that indicates the handle of the cell, if the Item parameter is 0.  
A cell that contains a radio button or a check box button fires the CellStateChanged event when its state is changed. Use the CellState property to change the cell's state. Use the CellHasRadioButton or CellHasCheckBox property to enable radio or check box button into a cell. 

The following sample displays the cell's caption whose check box is clicked:

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

Private Sub ExplorerTree1_CellStateChanged(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Item As EXPLORERTREELibCtl.HITEM, ByVal ColIndex As Long)
    With Group.Items
        Debug.Print .CellCaption(Item, ColIndex)
    End With
End Sub


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