widgetcontainer

Widget containers are objects that allow widgets to be attached to them. Widgets are graphical components that can be used to customize the appearance of an interface element. Widget containers act as user interface attachment points that dictate the creation and placement of the widgets.

Interface

addBitmapWidget

function addBitmapWidget([bitmap])

Adds a bitmapwidget to the container.

Parameters

bitmap   (string)   [optional]
A name of the bitmap resource used in the bitmap widget

Return values

(widget)
The return value is a reference to the created widget.

addTextWidget

function addTextWidget([font], [text])

Adds a textwidget to the container.

Parameters

font   (string)   [optional]
The name of a font resource used for rendering the text in the widget

text   (string)   [optional]
The text contained in the widget

Return values

(widget)
The return value is a reference to the created widget.