Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,631 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panel position changes #184476
02/18/08 12:51
02/18/08 12:51
Joined: Oct 2007
Posts: 85
H
harry3174 Offline OP
Junior Member
harry3174  Offline OP
Junior Member
H

Joined: Oct 2007
Posts: 85
Hi,

I have 1024 by 768 screen resoluation and made game .
In that my button position is right bottom.
When i play exe in 1024 by 1024 screen resolution computer,
button position chang.

What should i do to do panel position same in all kind of
screen resolution

please help
Thanx

Re: Panel position changes [Re: harry3174] #184477
02/18/08 14:19
02/18/08 14:19
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
if you call your function for screen resolution place a code something as:

panel.pos_x = screen_size.x - 40;
panel.pos_y = screen_size.y - 60;

Re: Panel position changes [Re: Scorpion] #184478
02/19/08 09:32
02/19/08 09:32
Joined: Oct 2007
Posts: 85
H
harry3174 Offline OP
Junior Member
harry3174  Offline OP
Junior Member
H

Joined: Oct 2007
Posts: 85
Thanks for your reply.
PANEL* main_pan =
{
button (550,425, "click.bmp", "normal.bmp", "over.bmp", obj_pos_x, NULL, NULL);
button 500,425, "click.bmp", "normal.bmp", "over.bmp", move_up, NULL, NULL ;
flags = OVERLAY | VISIBLE;
}
I have made function
function screen()
{
main_pan.pos_x = screen_size.x ;
main_pan.pos_y = screen_size.y ;
}
and called it to in main().
But when i run button is disapper.
What should i do?
Please help.

Re: Panel position changes [Re: harry3174] #184479
02/19/08 10:13
02/19/08 10:13
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline
Newbie
RicheyMB2  Offline
Newbie
R

Joined: Feb 2008
Posts: 39
Are you placing the panel out of sight?

screen_size.x, screen_size.y is the position of the bottom right hand corner of the screen so your panel is not visible.

Re: Panel position changes [Re: RicheyMB2] #184480
02/20/08 12:52
02/20/08 12:52
Joined: Oct 2007
Posts: 85
H
harry3174 Offline OP
Junior Member
harry3174  Offline OP
Junior Member
H

Joined: Oct 2007
Posts: 85
No my panels(buttons) in the sight.
I want it on right bottom in every resolution.
what should i do ?
Please help

Thanx

Re: Panel position changes [Re: harry3174] #184481
02/20/08 13:10
02/20/08 13:10
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Use

main_pan.pos_x = screen_size.x - main_pan.size_x;
main_pan.pos_y = screen_size.y - main_pan.size_y;

instead of

main_pan.pos_x = screen_size.x;
main_pan.pos_y = screen_size.y;



Re: Panel position changes [Re: Lukas] #184482
02/22/08 03:58
02/22/08 03:58
Joined: Oct 2007
Posts: 85
H
harry3174 Offline OP
Junior Member
harry3174  Offline OP
Junior Member
H

Joined: Oct 2007
Posts: 85
Thank you very much


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1