Jump to content

Recommended Posts

Posted

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

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