Resizing windows in layout editor

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Neil
Just popping in
Just popping in
Posts: 16
Joined: Thu Sep 17, 2009 20:44

Resizing windows in layout editor

Postby Neil » Fri Dec 18, 2009 04:17

When I resize a window is it possible to stop all the other buttons and things changing size too, so they stay the same? I want to add some more things to my window but when I expand it all the other buttons just enlarge to take up the space.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Resizing windows in layout editor

Postby Jamarr » Fri Dec 18, 2009 18:15

You need to stop using the scaled-offsets, and start using the fixed-offsets to define the positions/sizes of your elements.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

Neil
Just popping in
Just popping in
Posts: 16
Joined: Thu Sep 17, 2009 20:44

Re: Resizing windows in layout editor

Postby Neil » Fri Dec 18, 2009 18:46

And to do that, I...

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Resizing windows in layout editor

Postby Jamarr » Fri Dec 18, 2009 19:30

You have actually used the editor before, right?

In the editor, looking at the property pane, you can see that each side (top, left, right, bottom) of a window has two offsets: [side] scale and [side] offset. If you use the scaled parameters, then as insuinuated by the name when you resize the parent the child will "scale" along with it; if you use the fixed-offset parameters it will keep the same offset regardless of sizing changes to the parent window.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

Neil
Just popping in
Just popping in
Posts: 16
Joined: Thu Sep 17, 2009 20:44

Re: Resizing windows in layout editor

Postby Neil » Fri Dec 18, 2009 21:21

Yay it works now thank you.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests