Page 1 of 1

[SOLVED] GUISheet size

Posted: Tue Jun 07, 2011 10:11
by sirbabyface
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.

Re: GUISheet size

Posted: Tue Jun 07, 2011 11:12
by Kulik
Are you calling System::notifyDisplaySizeChanged?

PS: Nice project :-)

Re: GUISheet size

Posted: Tue Jun 07, 2011 23:11
by sirbabyface
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.

Re: [SOLVED] GUISheet size

Posted: Wed Jun 08, 2011 00:03
by Kulik
Cool! Maybe you could post it in the project announcement section.