ContainerScreenGadget()

Syntax

Result = ContainerScreenGadget(#ScreenGadget, x, y, Width, Height)
Description
Creates a container gadget in the current GadgetList. It's a simple panel gadget which can contain other gadgets. Once the gadget is created, all future created gadgets will be created inside the container. When all the needed gadgets have been created, CloseScreenGadgetList() must be called to return to the previous GadgetList. OpenScreenGadgetList() can be used later to add others gadgets on the fly in the container area.

Parameters

#ScreenGadget A number to identify the new gadget. #PB_Any can be used to auto-generate this number.
x, y, Width, Height The position and dimensions of the new gadget.

Return value

Nonzero on success, zero otherwise. If #PB_Any was used as the #ScreenGadget parameter then the return-value is the auto-generated gadget number on success.

Remarks

To add a 'mini help' to this gadget, use ScreenGadgetToolTip().

Supported OS

All

<- ComboBoxScreenGadget() - ScreenGadget Index - CountScreenGadgetItems() ->