Code: Select all
// Create the MISSION LISTING Window
CEGUI::WindowManager& mWinMgr = CEGUI::WindowManager::getSingleton();
// Get the current CEGUI sheet/window as we will be adding widgets too it
mRootWindow = CEGUI::System::getSingleton().getGUISheet();
mFrameWindow = (CEGUI::FrameWindow*)mWinMgr.createWindow( (CEGUI::utf8*) CEGUILOOK"/FrameWindow", "MissionList" );
mRootWindow->addChildWindow( mFrameWindow );
//mFrameWindow->setInheritsAlpha( false );
mFrameWindow->setText( "Available Missions [Loading]" );
mFrameWindow->setPosition( CEGUI::Point(0.25, 0.25f) );
mFrameWindow->setMaximumSize( CEGUI::Size(1.0f, 1.0f) );
mFrameWindow->setSize( CEGUI::Size(0.5f, 0.5f) );
mFrameWindow->setCloseButtonEnabled( true );
mFrameWindow->setVisible( false );
When the window is made visibile to the user it works fine except for that the user can click on the "close" hotspot (i.e. the 'X') and nothing will happen. And, i can't for the life figure it out. I have other FrameWindow's working and they work fine. yes, the "rollup" works fine for the window.
The only I can see is wrong with this window is that I create it manually in code vs reading it from an XML file. Also, The XML files enclose thier FrameWindows in a DefaultWindow. I don't create a default window first, I am just grabbing the sheet and adding it to it.
Does someone see what I am doing wrong?