File Requester and Ogre question:)
Posted: Wed Jan 25, 2006 19:11
Hello,
i am new in C++ programming and last week i gave Ogre and CEGUI a try.
Made good progress and started to create an Terrain Editor.
Now i am stuck because i cant find a File Requester in CEGUI.
To make my own i need to find a way to retreive a Directory in C++ (using VC++ Express 05, WinXP).
I searched 10 hours without any result.
Anyone could give me a hint?
A second question:
In Ogre CEGUI Tutorial, in void createScene(void):
CEGUI::PushButton* RotateButton = (CEGUI::PushButton*)CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/Button", (CEGUI::utf8*)"Rotate");
mEditorGuiSheet->addChildWindow(RotateButton);
RotateButton->setPosition(CEGUI::Point(0.0f, 0.2));
RotateButton->setSize(CEGUI::Size(0.3f, 0.1f));
RotateButton->setText("Test");
Works nice and i got a button.
Now i wonder if its possible to change the Text of the
Button in a FrameListener.
I added a Global: CEGUI::Window* LoadButton;
And added: RotateButton->setText("OtherText"); in the FrameListener.
That causes the app. to freze. Memory Leak.
Is it possible to change text of that button?
Any clue what happens here? :?
Would be cool if anyone could help me further.
i am new in C++ programming and last week i gave Ogre and CEGUI a try.
Made good progress and started to create an Terrain Editor.
Now i am stuck because i cant find a File Requester in CEGUI.
To make my own i need to find a way to retreive a Directory in C++ (using VC++ Express 05, WinXP).
I searched 10 hours without any result.
Anyone could give me a hint?
A second question:
In Ogre CEGUI Tutorial, in void createScene(void):
CEGUI::PushButton* RotateButton = (CEGUI::PushButton*)CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/Button", (CEGUI::utf8*)"Rotate");
mEditorGuiSheet->addChildWindow(RotateButton);
RotateButton->setPosition(CEGUI::Point(0.0f, 0.2));
RotateButton->setSize(CEGUI::Size(0.3f, 0.1f));
RotateButton->setText("Test");
Works nice and i got a button.
Now i wonder if its possible to change the Text of the
Button in a FrameListener.
I added a Global: CEGUI::Window* LoadButton;
And added: RotateButton->setText("OtherText"); in the FrameListener.
That causes the app. to freze. Memory Leak.
Is it possible to change text of that button?
Any clue what happens here? :?
Would be cool if anyone could help me further.