GUI Help > General > setGadgetEnabled
setGadgetEnabled
setGadgetEnabled handle gadget, bool enabled
Description: Enables or disables a gadget. Gadgets are enabled by default, but if they are disabled, they appear greyed-out, and the user cannot interact with them.
Return Value:
Parameters:
gadget | Handle to a gadget
enabled | 0 to disable the gadget, 1 to enable it.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)