Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panel size should change with pan_setpos #408057
09/24/12 14:57
09/24/12 14:57
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi, I create my panels with all controls (buttons, sliders, ...) on position (0,0) and use an "align" method to make them fit to the current resolution. Therefore, the function pan_setpos is very handy.

The manual says that - as long as a panel has no background bitmap - its size is defined by the elements on it.

When I use pan_setpos now, the panel is not resized if I put an element outside its defined size. But it should be, shouldn't it? :-)


Last edited by PadMalcom; 09/24/12 14:57.
Re: Panel size should change with pan_setpos [Re: PadMalcom] #408060
09/24/12 15:30
09/24/12 15:30
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
If i understand you have more then one element. That will not work i think, it set the size only if you have ONE element.

Maybe you can work with size_x / _y?

Re: Panel size should change with pan_setpos [Re: Widi] #408062
09/24/12 15:45
09/24/12 15:45
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi Widi, thanks for your answer. Currently I use size_x/y and it works. But the other solution would be a little bit more elegant.


Moderated by  old_bill, Tobias 

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