More Upgrading issues (0.4 -> 0.5)
Posted: Wed Feb 14, 2007 20:54
Hi,
I have so many compile errors that I really don't know what to do!
Could anyone help me upgrading this code?
Thank you very much,
Dirso
I have so many compile errors that I really don't know what to do!
Could anyone help me upgrading this code?
Code: Select all
PushButton* mButton;
FrameWindow* mWindow;
StaticText* mText;
mButton = (PushButton*)WindowManager::getSingleton().createWindow((utf8*)"WindowsLook/Button", name );
mButton->setText( text );
mButton->setNormalTextColour( colour(0.8,0.8,0.8) );
mButton->setHoverTextColour( colour(1,1,1) );
mButton->setPushedTextColour( colour(1,0.3,0.3) );
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) );
mText = (StaticText*)WindowManager::getSingleton().createWindow((utf8*)"WindowsLook/StaticText", basename+"/S1");
mText->setBackgroundEnabled(false);
mText->setFrameEnabled(false);
mWindow->addChildWindow( mText );
Thank you very much,
Dirso