Wb-FreeKill Posted February 27, 2005 Share Posted February 27, 2005 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 comment Share on other sites More sharing options...
Lazycat Posted February 27, 2005 Share Posted February 27, 2005 Try to add $TVS_SINGLEEXPAND to defined style. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted February 27, 2005 Author Share Posted February 27, 2005 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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now