Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, AndrewAMD), 833 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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