Wb-FreeKill Posted February 27, 2005 Share 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) Link to comment Share on other sites More sharing options...
Holger Posted February 27, 2005 Share 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 Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted February 28, 2005 Author Share Posted February 28, 2005 Im getting several errors with that example Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted February 28, 2005 Author Share Posted February 28, 2005 Okay, it corrected it. But this is GUI's, i want to use treeview Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted February 28, 2005 Author Share 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? Link to comment Share on other sites More sharing options...
Lazycat Posted February 28, 2005 Share 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]) Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted February 28, 2005 Author Share 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 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