pan_create(char* content, var layer)

Creates a panel at runtime. Objects created this way are automatically deleted on closing the engine, or by calling the ptr_remove function.

Parameters:

content - panel definition in a STRING* pointer or char array, or NULL for creating an empty panel.
layer - the layer of the panel.

Returns:

PANEL* - Pointer to the panel, or NULL if the creation failed .

Speed:

Medium

Example (lite-C):

PANEL* splash = pan_create("bmap = splash.pcx;",1);
set(splash,SHOW);

See also:

PANEL, ptr_remove, pan_setdigits, pan_setbutton, pan_setslider, pan_setwindow, pan_setpos

► latest version online