You can create a panel and its background image named bmap more than one way.
The static one:
Code:
BMAP* compass_map = "compass.pcx"; 

PANEL* aircraft_pan =
{
   bmap = compass_map; // compass_map as panel background
   flags = SHOW;
}


The dynamic one:
Code:
PANEL* splashscreen;
splashscreen.bmap = bmap_create("splash.pcx");


I think there are more ways to create a panel and assign a bmap to it. Just read the manual careful. All may examples based on the manual's examples.
Just one more dynamic example (from my project):
Code:
#define PAN_MENUS_SUM 3
PANEL* pan_menus[PAN_MENUS_SUM];
pan_menus[1]=pan_create(NULL,2);
pan_menus[1].bmap = bmap_create("foo.jpg");



Last edited by Aku_Aku; 08/08/11 16:30.