Type | Description | |||
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. |
private void CellStateChanged(object sender,exontrol.EXPLORERTREELib.Group Group,int Item,int ColIndex) { } Private Sub CellStateChanged(ByVal sender As System.Object,ByVal Group As exontrol.EXPLORERTREELib.Group,ByVal Item As Integer,ByVal ColIndex As Integer) Handles CellStateChanged End Sub |
private void CellStateChanged(object sender, AxEXPLORERTREELib._IExplorerTreeEvents_CellStateChangedEvent e) { } void OnCellStateChanged(LPDISPATCH Group,long Item,long ColIndex) { } void __fastcall CellStateChanged(TObject *Sender,Explorertreelib_tlb::IGroup *Group,Explorertreelib_tlb::HITEM Item,long ColIndex) { } procedure CellStateChanged(ASender: TObject; Group : IGroup;Item : HITEM;ColIndex : Integer); begin end; procedure CellStateChanged(sender: System.Object; e: AxEXPLORERTREELib._IExplorerTreeEvents_CellStateChangedEvent); begin end; begin event CellStateChanged(oleobject Group,long Item,long ColIndex) end event CellStateChanged Private Sub CellStateChanged(ByVal sender As System.Object, ByVal e As AxEXPLORERTREELib._IExplorerTreeEvents_CellStateChangedEvent) Handles CellStateChanged End Sub Private Sub CellStateChanged(ByVal Group As EXPLORERTREELibCtl.IGroup,ByVal Item As EXPLORERTREELibCtl.HITEM,ByVal ColIndex As Long) End Sub Private Sub CellStateChanged(ByVal Group As Object,ByVal Item As Long,ByVal ColIndex As Long) End Sub LPARAMETERS Group,Item,ColIndex PROCEDURE OnCellStateChanged(oExplorerTree,Group,Item,ColIndex) RETURN |
<SCRIPT EVENT="CellStateChanged(Group,Item,ColIndex)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function CellStateChanged(Group,Item,ColIndex) End Function </SCRIPT> Procedure OnComCellStateChanged Variant llGroup HITEM llItem Integer llColIndex Forward Send OnComCellStateChanged llGroup llItem llColIndex End_Procedure METHOD OCX_CellStateChanged(Group,Item,ColIndex) CLASS MainDialog RETURN NIL void onEvent_CellStateChanged(COM _Group,int _Item,int _ColIndex) { } function CellStateChanged as v (Group as OLE::Exontrol.ExplorerTree.1::IGroup,Item as OLE::Exontrol.ExplorerTree.1::HITEM,ColIndex as N) end function function nativeObject_CellStateChanged(Group,Item,ColIndex) return |
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