how to resize the window

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

zydgyy
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 05, 2012 03:01

how to resize the window

Postby zydgyy » Mon Mar 05, 2012 03:07

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~

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

Re: how to resize the window

Postby Kulik » Mon Mar 05, 2012 09:43

You need to call System::notifyDisplaySizeChanged

zydgyy
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 05, 2012 03:01

Re: how to resize the window

Postby zydgyy » Mon Mar 05, 2012 12:39

well,thank u,it works,however,it seems that some delay when i reszie my widnow?How can i work it out?

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

Re: how to resize the window

Postby Kulik » Mon Mar 05, 2012 13:15

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).

zydgyy
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 05, 2012 03:01

Re: how to resize the window

Postby zydgyy » Mon Mar 05, 2012 15:40

I use CEGUI+OGRE+OIS in windows system,So,who did solve it already??

zydgyy
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 05, 2012 03:01

Re: how to resize the window

Postby zydgyy » Thu Mar 08, 2012 17:04

So,i am still waiting someone to offer a solution of this problem~~~

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: how to resize the window

Postby Ident » Tue Apr 03, 2012 11:05

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
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 9 guests