1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| Private Sub tvw_AfterLabelEdit(Cancel As Integer, NewString As String)
'après l'édition d'un label
End Sub
Private Sub tvw_BeforeLabelEdit(Cancel As Integer)
'avant l'édition d'un label
'LENOM = tvw.Nodes.Item(3)
End Sub
Private Sub tvw_Click()
'Se produit quand on clique
End Sub
Private Sub tvw_Collapse(ByVal Node As MSComctlLib.Node)
'Se produit quand on réduit
'MsgBox Node exprime le nom du noeud (ex: Noeud 2.1)
End Sub
Private Sub tvw_DblClick()
'Se produit quand on double-clique
Tvw.ImageList = ImageList2
Tvw.Nodes(1).Image = 2
Tvw.Nodes(2).Image = 1
Tvw.Nodes(3).Image = 1
End Sub
Private Sub tvw_Expand(ByVal Node As MSComctlLib.Node)
'Se produit quand on étend
'MsgBox Node exprime le nom du Noeud (ex: La racine,Noeud 2)
End Sub
Private Sub tvw_NodeCheck(ByVal Node As MSComctlLib.Node)
'Quand un Node est checké
'If Node.Checked = True Then MsgBox Node + " a été sélectionné" affiche le nom du Noeud Checké
End Sub
Private Sub tvw_NodeClick(ByVal Node As MSComctlLib.Node)
Dim chemin As String
'Se produit lors de la sélection d'un noeud
Select Case Node.Key |
Partager