FreeGadget()

Syntax

FreeGadget(#Gadget)
Description
Free and remove the gadget from the display (and free its gadgetlist if the gadget was a container).

Parameters

#Gadget The gadget to free. If #PB_All is specified, all the remaining gadgets are freed.

Return value

None.

Remarks

A gadget is freed automatically if one of the following happens:

- The window that contains the gadget is closed.
- The parent of the gadget (ContainerGadget(), PanelGadget() etc.) is freed.
- The program ends.

See Also

IsGadget(), CloseWindow()

Supported OS

All

<- FrameGadget() - Gadget Index - GadgetHeight() ->