FreeScreenGadget()

Syntax

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

Parameters

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

Return value

None.

Remarks

All remaining gadgets are automatically freed when the program ends.

Supported OS

All

<- EventScreenGadget() - ScreenGadget Index - GetScreenGadgetState() ->