You can create bmaps with bmap_create, and panels with pan_create. If you want to do both in one step you can use:

pan_create ("bmap = \"mybitmap.bmp\";",1337);


Always learn from history, to be sure you make the same mistakes again...