Wb-FreeKill Posted February 27, 2005 Posted February 27, 2005 I have a lots of Labels and input boxes under one treeviewitem($Clientitem), and something else under another($generalitem) How can i in the best way switch between these treeviewitems, without overlapping each other? $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) $Clientitem = GUICtrlCreateTreeViewitem ("Client Info",$treeview)
Holger Posted February 27, 2005 Posted February 27, 2005 (edited) Maybe this will helps you a little bit.Just resize/create the child-windows to the size of the area with the additional controls:http://www.autoitscript.com/forum/index.php?showtopic=8753If this is what you mean...Another possibility is to make 2 small functions for instance.In one you hide the controls for one item and show the other controls and in the other you hide the other controls and show the one for the other item... Hopefully you understand a little bit what I mean Edited February 27, 2005 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Wb-FreeKill Posted February 28, 2005 Author Posted February 28, 2005 Im getting several errors with that example
Wb-FreeKill Posted February 28, 2005 Author Posted February 28, 2005 Okay, it corrected it. But this is GUI's, i want to use treeview
Wb-FreeKill Posted February 28, 2005 Author Posted February 28, 2005 Okay, i was thingking about doing it this way: For $i = 1 to 15 GUICtrlSetState ($i,$GUI_HIDE) Next but it aint working, howcome?
Lazycat Posted February 28, 2005 Posted February 28, 2005 Make array with control id's and then set it in loop: Dim $ahCont[15] $ahCont[0] = GUICtrlCreateLabel(...) ... $ahCont[14] = GUICtrlCreateInput(...) For $i = 0 to 14 GUICtrlSetState ($ahCont[$i],$GUI_HIDE) Next Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
Wb-FreeKill Posted February 28, 2005 Author Posted February 28, 2005 Make array with control id's and then set it in loop:Dim $ahCont[15] $ahCont[0] = GUICtrlCreateLabel(...) ... $ahCont[14] = GUICtrlCreateInput(...) For $i = 0 to 14 GUICtrlSetState ($ahCont[$i],$GUI_HIDE) Next<{POST_SNAPBACK}>o, thx alot, ill try that
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