Panel size should change with pan_setpos

Posted By: PadMalcom

Panel size should change with pan_setpos - 09/24/12 14:57

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? :-)

Posted By: Widi

Re: Panel size should change with pan_setpos - 09/24/12 15:30

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?
Posted By: PadMalcom

Re: Panel size should change with pan_setpos - 09/24/12 15:45

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.
© 2024 lite-C Forums