Posted By: xbox
can not use variables for panel positions. - 11/08/13 17:25
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.
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.
Code:
PANEL* menuPan={ pos_x = (sys_metrics(0) - bmap_width(background))/ 2; pos_y = (sys_metrics(1) - bmap_height(background))/ ...}
Edit: Yes the bmap background is defined before the Panel.