Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to resize/scale buttons? #280182
07/21/09 11:20
07/21/09 11:20
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Hey guys,

the header says everything. In my game, you can choose btw different screen resolutions and when i change to a bigger resolution, the buttons are little.

Regards Raz

Re: How to resize/scale buttons? [Re: Razoron] #280188
07/21/09 11:55
07/21/09 11:55
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Hi,

I think you should have a look at pan_setbmap or pan_setbutton smile haven't tried those functions myself yet though, but seems to be what you are looking for smile

Re: How to resize/scale buttons? [Re: Claus_N] #280190
07/21/09 12:20
07/21/09 12:20
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
first, thanks for answering, but i already used pan_setbutton and pan_setbmap. When i would use them, i have to create the buttons for all screen resolutions. I'm searching a function, that can scale a bmap while using it and loading it only once.

Re: How to resize/scale buttons? [Re: Razoron] #280197
07/21/09 12:44
07/21/09 12:44
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Ah, sorry for misunderstanding grin

I don't think that theres such a function, though you could maybe use panel.scale_x and scale_y to make the whole panel fit the new resolution.

Re: How to resize/scale buttons? [Re: Claus_N] #280199
07/21/09 12:48
07/21/09 12:48
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Works, thanks.

Last edited by Razoron; 07/21/09 12:48.

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

Gamestudio download | chip programmers | 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