Sunblood Posted February 10, 2005 Share Posted February 10, 2005 In my GUI, I need to display several (200+) checkboxes, inputboxes, etc. and right now I'm doing it with a Treeview, making seperate branches for various groups of controls. Right now, I have several For...Next loops to hide/unhide all the controls of a given menu. For example, Func Hide() For $i = 0 To $groupc GUICtrlSetState($group[$i], $GUI_HIDE) Next For $i = 0 To $treeviewc GUICtrlSetState($treeview[0][$i], $GUI_HIDE) Next For $i = 0 To $labelc GUICtrlSetState($label[$i], $GUI_HIDE) Next For $i = 0 To $inputc GUICtrlSetState($input[$i], $GUI_HIDE) Next For $i = 0 to $buttonc GUICtrlSetState($button[$i],$GUI_HIDE) Next EndFunc ;==>Hide Is there a better way to go about this? Keep in mind, I'm JUST learning GUI. I'm plenty well versed in regular AutoIt3 though... Link to comment Share on other sites More sharing options...
CyberSlug Posted February 10, 2005 Share Posted February 10, 2005 Could you use a tab control? See GUICtrlCreateTab example in the help file. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Sunblood Posted February 10, 2005 Author Share Posted February 10, 2005 Alright, I think I can do that. Thanks, CyberSlug. 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