I would like to place buttons and panels on the screen in locations based on the screen resolution, but when I try something like the following I get a syntax error.
Code:
PANEL* menuPan={
pos_x = (sys_metrics(0) - bmap_width(background))/ 2;
pos_y = (sys_metrics(1) - bmap_height(background))/ 
...}

but if I do the math myself and just put the answers in, it works fine. I can't do this though because the screen resolution may be different on other pc's.

Edit: Yes the bmap background is defined before the Panel.

Last edited by xbox; 11/08/13 17:26.