C4 Engine
C4 Engine API Documentation

Widget::LoadPanel

Defined in:  C4Widgets.h
Loads a panel resource.
Prototype

bool LoadPanel(const char *name);

Parameters
name The name of the panel resource to load.
Description
The LoadPanel function loads the panel resource specified by the name parameter beneath the widget for which the function is called. That is, each top-level widget in the panel resource becomes a subnode of the widget for which the LoadPanel function is called. If the panel resource is successfully loaded, then the return value is true. If the panel resource does not exist, then the return value is false.

Widgets created by the LoadPanel function have not yet been preprocessed when this function returns.
See Also

Window