Ie if a person selects tree2 child1, I need to detect both the "tree 2" selected & its "child 1". I've tried googling this, but cant find much info ...
Thanks!
My code :
Code: Select all
Gui, Add, TreeView
Tree1 := TV_Add("First parent")
Tree1Child := TV_Add("Tree1Child", Tree1) ; Specify P1 to be this item's parent.
Tree2 := TV_Add("Second parent")
Tree2Child1 := TV_Add("Tree2Child1", Tree2)
Tree2Child2 := TV_Add("Tree2Child2", Tree2)
Tree2Child3 := TV_Add("Tree2Child3", Tree2)
Gui, Show ; Show the window and its TreeView.
return
GuiClose: ; Exit the script when the user closes the TreeView's GUI window.
ExitApp