on defining the panel, u cannot put a variable assigned to the size. But on run time u do can change that. here is an example:

Code:
BMAP* bmap_background = "healthbar.bmp";

PANEL* panel_editor =
{
  pos_x = 0; 
  pos_y = 0;
  layer = 1;
  size_x = 1;
  bmap = bmap_background;
  flags =  SHOW;
}

funtion main()
{
  ...
  ...
  panel_editor->size_x += healthgained;
  panel_editor->size_x -= healthlost;
  ....
}



this way on runtime u can modify the size.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook