A few issues upgrading to v0.7
Posted: Thu Oct 08, 2009 21:16
Hi there,
I had an application running well using CEGUI v0.6.2.
Today I tried to upgrade to the new CEGUi version and this is were the troubles started
I am using CEGUI with opengl and SDL over windows xp platform (visual studio 2008).
Here are the list of issues I am getting:
1/ the mouse events now seems to be always handled by cegui:
For example, with version 0.6.2 when I was clicking on the screen, if i was not clicking on a cegui windows then the call to injectMouseButtonDown
was returning false. Now injectMouseButtonDown will always return me true wether I click on a gui window or not.
edit i fixed that one with setting MousePassThroughEnabled on the root window
2/ I am using multiple guis and I am switching from one to another using the setGUISheet function.
This works fine with version 0.7.0. However I noticed a strange behavior when changing to a gui that has some hidden framwindows in it.
If at later stage I make those hidden windows visible then they will display incorrectly (the position of the elements inside the windows are somehow ignoring the title bar). However, if the windows was not hidden when I switch the gui then they will appear correctly.
Here are pictures of what I mean:
The correct display:
The incorrect display:
3/ the text display seems to have lost its sharpness, now it seems a bit blured
Here is an image of the text display in version 0.6.2:
Interestingly, when the previous bug 2 occurs, the text will then appear sharp on the incorrect display (compare image 1 and image 2).
4/ I am using a MultiLineEditbox windows that I define programmatically and not using the layout xml.
Strangly with the new version v0.7.0 the program now crashes as soon I try to click on the created MultiLineEditbox.
Here is the code I am using to implement my MultiLineEditbox (which was working fine on v0.6.2)
5/ when resizing my application, I am now loosing the text and the images display.
here is what I was doing before:
I replaced it for v0.7.0:
Without any success.
I know that this is a lot of stuff, I had more issues but I could figure them out by myself however even after looking at the new documentation in the wiki I am still stuck with those ones.
Thanks in advance for your help in the matter.
I had an application running well using CEGUI v0.6.2.
Today I tried to upgrade to the new CEGUi version and this is were the troubles started
I am using CEGUI with opengl and SDL over windows xp platform (visual studio 2008).
Here are the list of issues I am getting:
1/ the mouse events now seems to be always handled by cegui:
For example, with version 0.6.2 when I was clicking on the screen, if i was not clicking on a cegui windows then the call to injectMouseButtonDown
was returning false. Now injectMouseButtonDown will always return me true wether I click on a gui window or not.
edit i fixed that one with setting MousePassThroughEnabled on the root window
2/ I am using multiple guis and I am switching from one to another using the setGUISheet function.
This works fine with version 0.7.0. However I noticed a strange behavior when changing to a gui that has some hidden framwindows in it.
If at later stage I make those hidden windows visible then they will display incorrectly (the position of the elements inside the windows are somehow ignoring the title bar). However, if the windows was not hidden when I switch the gui then they will appear correctly.
Here are pictures of what I mean:
The correct display:
The incorrect display:
3/ the text display seems to have lost its sharpness, now it seems a bit blured
Here is an image of the text display in version 0.6.2:
Interestingly, when the previous bug 2 occurs, the text will then appear sharp on the incorrect display (compare image 1 and image 2).
4/ I am using a MultiLineEditbox windows that I define programmatically and not using the layout xml.
Strangly with the new version v0.7.0 the program now crashes as soon I try to click on the created MultiLineEditbox.
Here is the code I am using to implement my MultiLineEditbox (which was working fine on v0.6.2)
Code: Select all
CEGUI::TabControl *tc = static_cast<CEGUI::TabControl *>(CEGUI::WindowManager::getSingleton().getWindow ("Chat/TabControl"));
CEGUI::FrameWindow* fWnd = static_cast<CEGUI::FrameWindow *>(CEGUI::WindowManager::getSingleton().createWindow( "DefaultGUISheet", "Chat/Tab_"+tabName ));
fWnd->setProperty("Text", (const unsigned char *)tabName.c_str());
CEGUI::MultiLineEditbox* txt = static_cast<CEGUI::MultiLineEditbox *>(CEGUI::WindowManager::getSingleton().createWindow( "TaharezLook/MultiLineEditbox", "Chat/Tab_"+tabName+"/editMulti" ));
txt->setProperty("MaxTextLength", "1073741823");
txt->setProperty("UnifiedMaxSize", "{{1,0},{1,0}}");
txt->setProperty("UnifiedAreaRect", "{{0,0},{0,0},{1,0},{1,0}}");
txt->setReadOnly(true);
fWnd->addChildWindow(txt);
tc->addTab (fWnd);
5/ when resizing my application, I am now loosing the text and the images display.
here is what I was doing before:
Code: Select all
_gui_renderer->grabTextures();
resize the windows using SDL
_gui_renderer->setDisplaySize(CEGUI::Size((float)screen_size_X, (float)screen_size_Y));
_gui_renderer->restoreTextures();
I replaced it for v0.7.0:
Code: Select all
_gui_renderer->grabTextures();
resize the windows using SDL
CEGUI::System::getSingleton().
notifyDisplaySizeChanged(CEGUI::Size((float)screen_size_X,(float)screen_size_Y));
_gui_renderer->restoreTextures();
Without any success.
I know that this is a lot of stuff, I had more issues but I could figure them out by myself however even after looking at the new documentation in the wiki I am still stuck with those ones.
Thanks in advance for your help in the matter.