1.the titlebar of a framewindow become strange when i drag it to different position,like this:
2.after i drag the framewindow a little,the editbox on it will not receive my typing anymore.
i created this window via code:
Code: Select all
using namespace CEGUI;
WindowManager &mgr = WindowManager::getSingleton();
ConsoleWindow = (FrameWindow*)mgr.createWindow(GUISTYLENAME"/FrameWindow","Console");
ConsoleWindow->getTitlebar()->setText("Console");
ConsoleWindow->setWidth(UDim(0,LAYOUT_FRAMEWIDTH));
ConsoleWindow->setHeight(UDim(0,LAYOUT_FRAMEHEIGHT));
ConsoleWindow->setHorizontalAlignment(HA_CENTRE);
ConsoleWindow->setVerticalAlignment(VA_CENTRE);
ConsoleWindow->setAlwaysOnTop(true);
ConsoleWindow->setSizingEnabled(false);
ConsoleWindow_Editbox = (Editbox*)mgr.createWindow(GUISTYLENAME"/Editbox","Console/Editbox");
ConsoleWindow_Editbox->setHeight(UDim(0,LAYOUT_INPUTBOXHEIGHT));
ConsoleWindow_Editbox->setWidth(UDim(0,LAYOUT_FRAMEWIDTH-LAYOUT_MARGIN*2));
ConsoleWindow_Editbox->setXPosition(UDim(0,LAYOUT_MARGIN));
ConsoleWindow_Editbox->setYPosition(UDim(0,LAYOUT_FRAMEHEIGHT-LAYOUT_INPUTBOXHEIGHT-LAYOUT_MARGIN));
float titlebarHeight = ConsoleWindow->getTitlebar()->getPixelSize().d_height;
ConsoleWindow_MultiLineEditbox = (MultiLineEditbox*)mgr.createWindow(GUISTYLENAME"/MultiLineEditbox","Console/MultiLineEditbox");
ConsoleWindow_MultiLineEditbox->setXPosition(UDim(0,LAYOUT_MARGIN));
ConsoleWindow_MultiLineEditbox->setYPosition(UDim(0,titlebarHeight+LAYOUT_MARGIN));
ConsoleWindow_MultiLineEditbox->setWidth(UDim(0,LAYOUT_FRAMEWIDTH-LAYOUT_MARGIN*2));
ConsoleWindow_MultiLineEditbox->setHeight(UDim(0,LAYOUT_FRAMEHEIGHT-titlebarHeight-LAYOUT_INPUTBOXHEIGHT-LAYOUT_MARGIN*3));
ConsoleWindow_MultiLineEditbox->setReadOnly(true);
ConsoleWindow->addChildWindow(ConsoleWindow_MultiLineEditbox);
ConsoleWindow->addChildWindow(ConsoleWindow_Editbox);
ConsoleWindow->subscribeEvent(FrameWindow::EventCloseClicked,Event::Subscriber(&ConsoleWindow_OnCloseClicked));
ConsoleWindow_Editbox->subscribeEvent(Editbox::EventTextAccepted,Event::Subscriber(&ConsoleWindowEditbox_OnTextAccepted));
System::getSingleton().getGUISheet()->addChildWindow(ConsoleWindow);
ConsoleWindow_Editbox->activate();
and when my application window size changed,i did these:
Code: Select all
if(renderer==0)return;
CEGUI::Size sz = CEGUI::Size(w,h);
//renderer->setDisplaySize(sz);
CEGUI::System::getSingleton().notifyDisplaySizeChanged(sz);
CEGUI::FontManager::getSingleton().notifyDisplaySizeChanged(sz);
CEGUI::ImagesetManager::getSingleton().notifyDisplaySizeChanged(sz);
CEGUI::MouseCursor::getSingleton().notifyDisplaySizeChanged(sz);
is it a bug or i just made some mistake?
Thanks.
ps: i use 'QuadraticLook'.