Sorry for the late response, I had to fix some bugs, before I was able to test whether it works. Your solution seems to be correct. I now just attached the window to a "normally" sized window and it displays seamlessly.
1) Version is 0.6.1 2) My GUI is loaded by a lua script which defines: local schemeMgr = CEGUI.SchemeManager:getSingleton() winMgr = CEGUI.WindowManager:getSingleton() local logger = CEGUI.Logger:getSingleton() local system = CEGUI.System:getSingleton() local cursor = CEGUI.MouseCursor:getSingleton(...
Thanks, the method is much nicer now, the problem with the lines, however still persists. I've just added a little debug output: /*static*/ int QuestGUINode::setHeight(CEGUI::Window* window) { //! Get the area the text is formatted and drawn into. const CEGUI::Rect formattedArea = getStaticTextArea(...
Correction. I didn't have much time, when I wrote the previous post, so I didn't look at some things too closely. What I found out later was, that the reason it looked ok, was that now the size of the window was too small and not all text was displayed. To illustrate the strange behavior a little be...
Great, thanks. :D The error you found took care of most of the issues. There is just the one left: So I'll get into as much detail as I can. I have a window (a FrameWindow): this->details_ = CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/FrameWindow", stream.str()); this->d...
getUnclippedPixelRect() does change something, indeed. But unfortunately for the worse. ;) To your question: The StaticText has no frame. Now, to what has happened (and to another strange behavior I forgot to mention ;)) Before, the size I got with getPixelRect() was: PixelRect: 551x795 (height x wi...
I've tried to write a method to adjust the height of a StaticText window according to the text it holds. /*static*/ int QuestGUINode::setHeight(CEGUI::Window* window) { COUT(1) << "PixelRect: " << window->getPixelRect().getHeight() << "x" << window->getPixelRect().getWidth() << s...
Hi, I have a question related to this, so I'll post it here: CEGUI::Window* descriptionWindow = CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/StaticText", "Name"); descriptionWindow->setText("Text"); static_cast<CEGUI::StaticText*>(descriptionWindow)->s...