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:
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.