parent & child window size relationship

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 06, 2005 09:42

parent & child window size relationship

Postby Sachin » Wed Sep 07, 2005 15:45


i want to know that is it possible that the size of a child window is not dependent on the size of its parent window.

wat i want achieve is that wen a parent window(eg a frame window) is resized thru mouse, its child windows(eg a button) may not get resized but rather they maintain their size & may be clipped by the parent window.

thanx & regards

User avatar
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England

Re: parent & child window size relationship

Postby CrazyEddie » Wed Sep 07, 2005 17:59

Yes, use absolute co-ords, or unified co-ords which only have an absolute component. Its the relative co-ords that cause child windows to be sized in relation to thier parent.

See: Window::setMetricsMode for how to change between the modes. Or info on UDim metrics if you're using the new 0.4.0 release.

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests