|
Re: panel position
[Re: Superku]
#314799
03/11/10 00:59
03/11/10 00:59
|
Joined: Sep 2003
Posts: 733 Whitefish, Montana
JazzDude
OP
User
|
OP
User
Joined: Sep 2003
Posts: 733
Whitefish, Montana
|
The manual didn't help me on that. Only this sentence registered, LOL!: If you have no idea what I'm talking about, you probably won't need on_d3d_lost or on_d3d_reset
|
|
|
Re: panel position
[Re: JazzDude]
#314800
03/11/10 01:16
03/11/10 01:16
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
Here you go...
function SetPanelPosition()
{
mypanel.pos_y = screen_size.y-80-mypanel.size_y;
}
function main()
{
on_d3d_reset = SetPanelPosition;
}
Now every time you change resolution, the panel will auto position.
Last edited by DJBMASTER; 03/11/10 01:17.
|
|
|
Re: panel position
[Re: JazzDude]
#315368
03/14/10 23:31
03/14/10 23:31
|
Joined: Jul 2004
Posts: 1,710
MMike
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,710
|
I would like a panel to always be 80 above the bottom of the full screen or the window regardless of the screen resolution.
This doesn't work:
pos_y = (screen_size.y - 80); or pos_y = (screen_size.y)- 80;
And this doesn't work:
pos_y = (desktopHeight -80); or pos_y = (desktopHeight)-80;
Any suggestions would be appreciated. Thanks.
Oh my god you made my day... (desktopHeight)-80; its exactly the same of desktopHeight-80;
|
|
|
|