Remove the ExitOnError() block if you don't need it in your environment.
Code: Select all
Global Gui
Gui = {}
/* mui.Set */
Function Gui:Set(objects,attribute,value,postfix)
ExitOnError(False)
For i, v In IPairs(objects)
mui.Set(v .. postfix,attribute,value)
Next
ExitOnError(True)
EndFunction
Code: Select all
Gui:Set({
"evo_layout-foldall",
"evo_layout-unfoldall",
"evo_layout-remove-gadget"
},"disabled",True)
/* ForEach item in the array/table set the disabled attribute state to True */
Code: Select all
Gui.Set( {"evo_layout-foldall"} , "disabled" , True )
/* Remember the curly braces {} */