Jump to content

Recommended Posts

I want to make a working treeview, but im running in to trouble...

This is my tree

$treeview = GUICtrlCreateTreeView (6,45,120,280,BitOr($TVS_HASBUTTONS,$TVS_HASLINES,$TVS_LINESATROOT,$TVS_DISABLEDRAGDROP,$TVS_SHOWSELALWAYS),$WS_EX_CLIENTEDGE)

$generalitem = GUICtrlCreateTreeViewitem ("General",$treeview)

$aboutitem = GUICtrlCreateTreeViewitem ("About",$generalitem)

$Logsitem = GUICtrlCreateTreeViewitem ("Logs",$generalitem)

$displayitem = GUICtrlCreateTreeViewitem ("Client Info",$treeview)

$resitem = GUICtrlCreateTreeViewitem ("Display",$displayitem)

$otheritem = GUICtrlCreateTreeViewitem ("Network",$displayitem)

$Serious_stuffItem = GUICtrlCreateTreeViewitem ("Seriuos Stuff",$treeview)

$Some= GUICtrlCreateTreeViewitem ("some",$Serious_stuffItem)

$Some1 = GUICtrlCreateTreeViewitem ("Some1",$Serious_stuffItem)

$Funny_stuffItem = GUICtrlCreateTreeViewitem ("Funny Stuff",$treeview)

$WindowMng = GUICtrlCreateTreeViewitem ("Windows Manegement",$Funny_stuffItem)

$Messages = GUICtrlCreateTreeViewitem ("Messages",$Funny_stuffItem)

$MouseMng = GUICtrlCreateTreeViewitem ("Mouse Manegement",$Funny_stuffItem)

$Other = GUICtrlCreateTreeViewitem ("Other",$Funny_stuffItem)

$ChatItem = GUICtrlCreateTreeViewitem ("Chat Window",$treeview)

How can i in the best way make it, so when i select one TreeViewitem, it wont show all the others, only the one i selected..

I dont get the GUIChangeItems in the help file..

Link to post
Share on other sites

hmm.. If we start with the first tree, how would this look like?

Case $msg = $generalitem

GUICtrlSetState ($butt,$GUI_SHOW)

GUIChangeItems($aboutitem,$Logsitem,$edit,$input)

Case $msg = $aboutitem

GUICtrlSetState ($compinfo,$GUI_HIDE)

GUIChangeItems($generalitem,$Logsitem,$aboutlabel,$aboutlabel)

Case $msg = $Logsitem

GUICtrlSetState ($startlabel,$GUI_HIDE)

GUIChangeItems($aboutitem,$generalitem,$startlabel ,$startlabel)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...