Simple solution to this problem:

Code:
  str_cpy(BuildString, "bmap = NULL;");
  str_cat_num (BuildString, "size_x = %4.0f",bmap_width(overlaybmaps[currentdex]));
  str_cat_num (BuildString, "size_y = %4.0f",bmap_height(overlaybmaps[currentdex]));
 //what ever else you need for the panel here
  MyPan = pan_create(BuildString,42);
  MyPan.bmap = overlaybmaps[currentdex];



Our new web site:Westmarch Studios