[SOLVED] GUISheet size

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

sirbabyface
Just popping in
Just popping in
Posts: 8
Joined: Tue Jun 07, 2011 09:39
Location: Coimbra, Portugal

[SOLVED] GUISheet size

Postby sirbabyface » Tue Jun 07, 2011 10:11

Hi,

I'm developing a window application, using Qt + Ogre + CEGUI.

The application is almost ready, but there is a problem with the position of some CEGUI elements. All CEGUI elements are created in C++ code.
I also create the GUISheet in C++.

This is how we create the GuiSheet:

Code: Select all

CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton();
CEGUI::Window* _ceguiWindow = winMgr.createWindow( "DefaultWindow", "GUISheet" );
_ceguiWindow->setProperty("InheritsAlpha", "False");
_ceguiWindow->setUsingAutoRenderingSurface(false);
_ceguiWindow->setProperty("UnifiedMaxSize", "{{1,0},{1,0}}");
_ceguiWindow->setProperty("UnifiedSize", "{{1,0},{1,0}}");
_ceguiWindow->setProperty("UnifiedAreaRect", "{{0,0},{0,0},{1,0},{1,0}}");


The problem see can be seen in this 2 videos
1. http://www.youtube.com/watch?v=nx6TzYhSkrY
2. http://www.youtube.com/watch?v=4aOw3VcI95g

After resizing a window, the GuiSheet seems to have a max size, and it doesn't get's bigger then that. Even if I start with a very large window, the GUISheet doesn't get bigger then what it is seen in video 2.
I'm out of ideias how could I solve this problem.
Last edited by sirbabyface on Tue Jun 07, 2011 23:12, edited 1 time in total.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: GUISheet size

Postby Kulik » Tue Jun 07, 2011 11:12

Are you calling System::notifyDisplaySizeChanged?

PS: Nice project :-)

sirbabyface
Just popping in
Just popping in
Posts: 8
Joined: Tue Jun 07, 2011 09:39
Location: Coimbra, Portugal

Re: GUISheet size

Postby sirbabyface » Tue Jun 07, 2011 23:11

Thanks a lot. That solved the problem.

We will be releasing the product for MacStore and Windows soon. It should also run on Linux, but we didn't made test in Linux yeat.

The software has been released in the past, but we are doing a new version, mainly with a full recode of the engine.

Little Mozart a software for creating music. There is also an iPhone version.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: [SOLVED] GUISheet size

Postby Kulik » Wed Jun 08, 2011 00:03

Cool! Maybe you could post it in the project announcement section.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 7 guests