FreeGadget()

语法

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

参数

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

返回值

无.

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.

参阅

IsGadget(), CloseWindow()

已支持操作系统

所有

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