[Solved] Static Text inside a FrameWindow
Posted: Fri Jan 05, 2007 22:28
Hi,
I'm making a simple dialog with two buttons, a caption and a text (question).
The dialog and the buttons work fine, but I don't know how to put a question inside the window (maybe a StaticText)? Could anyone provide me a sample code for this?
Thanks a lot!
Dirso.
I'm making a simple dialog with two buttons, a caption and a text (question).
The dialog and the buttons work fine, but I don't know how to put a question inside the window (maybe a StaticText)? Could anyone provide me a sample code for this?
Code: Select all
// that's the code I create my dialog, how do I add a StaticText to it?
mWindow = (FrameWindow*)WindowManager::getSingleton().createWindow((utf8*)"WindowsLook/FrameWindow", basename+"/Window" );
parentwin->addChildWindow( mWindow );
mWindow->setCloseButtonEnabled(false);
mWindow->setSizingEnabled(false);
mWindow->setCaptionColour( CEGUI::colour(0.8,0.8,0.8) );
mWindow->setSize( Size(0.4,0.2) );
mWindow->setPosition( Point(0.3,0.4) );
Thanks a lot!
Dirso.