Sign in to follow this  
Followers 0
Sunblood

Something tell me there's a better way for this.

3 posts in this topic

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...


Share this post


Link to post
Share on other sites



Alright, I think I can do that.

Thanks, CyberSlug.


Share this post


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
Sign in to follow this  
Followers 0