Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (Quad, TipmyPip), 6,316 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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 | 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