Code: Select all
CEGUI::FrameWindow* finestra = static_cast<CEGUI::FrameWindow*>(wmgr.createWindow("TaharezLook/FrameWindow"));
finestra->setSize(CEGUI::UVector2(CEGUI::UDim(0.3, 0), CEGUI::UDim(0.4, 0)));
finestra->setText("Status");
finestra->setCloseButtonEnabled(true);
finestra->subscribeEvent(CEGUI::FrameWindow::EventCloseClicked,CEGUI::Event::Subscriber(&GUIStatus::CloseButton, this));
sheet->addChildWindow(finestra);
the function is:
Code: Select all
bool GUIStatus::CloseButton(const CEGUI::EventArgs&)
{
finestra->setVisible(false);
return true;// error
}
but it give me an exeption on the return true; statement.
What I have to do? thankyou