Page 1 of 1

how to resize the window

Posted: Mon Mar 05, 2012 03:07
by zydgyy
Hi,guys!
I am a beginner to CEGUI,so,i use OIS+OGRE+CEGUI to test CEGUI,and i add a frame window to my app,when i resize my window,why didnt the frame window resize and reposition?How do i do that????THANKS~

Re: how to resize the window

Posted: Mon Mar 05, 2012 09:43
by Kulik
You need to call System::notifyDisplaySizeChanged

Re: how to resize the window

Posted: Mon Mar 05, 2012 12:39
by zydgyy
well,thank u,it works,however,it seems that some delay when i reszie my widnow?How can i work it out?

Re: how to resize the window

Posted: Mon Mar 05, 2012 13:15
by Kulik
The delay is likely caused by your window manager / compositor.

There are probably ways to get rid of the flicker but I don't know about the specifics. Depending on your platform you should probably ask people who deal with it (WinAPI / GDI, Xorg, Quartz or whatever else).

Re: how to resize the window

Posted: Mon Mar 05, 2012 15:40
by zydgyy
I use CEGUI+OGRE+OIS in windows system,So,who did solve it already??

Re: how to resize the window

Posted: Thu Mar 08, 2012 17:04
by zydgyy
So,i am still waiting someone to offer a solution of this problem~~~

Re: how to resize the window

Posted: Tue Apr 03, 2012 11:05
by Ident
the problem is unrelated to CEGUI. All CEGUI is responsible for is rendering the GUI at the moment you call its render function. When you use Ogre, Ogre will create a window which will be used for CEGUI then. If the content isnt updated in time or flickers, it is rather related to OGRE and the way they handle their window, than CEGUI. Try asking in the Ogre forums