Jump to content

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


Recommended Posts

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)
    For $i = 0 To $treeviewc
        GUICtrlSetState($treeview[0][$i], $GUI_HIDE)
    For $i = 0 To $labelc
        GUICtrlSetState($label[$i], $GUI_HIDE)
    For $i = 0 To $inputc
        GUICtrlSetState($input[$i], $GUI_HIDE)
    For $i = 0 to $buttonc
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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...