Blitz3D+ Command Reference

EnableGadget gadget

Parameters

gadget - gadget to enable

Description

Re-enables a gadget disabled with DisableGadget.

Requires Extended language mode.

The gadget loses its greyed-out look and starts accepting clicks, keyboard focus and events again. Gadgets are created enabled, so you only need this after a DisableGadget - the usual rhythm is state-driven: the user selects something, so the Apply and Delete buttons come back to life.

Enabling a group such as a panel restores input to the gadgets inside it, except any that were also disabled individually.

The world editor shell sample shows the kind of editor UI this state management belongs to.

See also: DisableGadget, ShowGadget, HideGadget, EnableMenu, EnableToolBarItem.

Index