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.
So thanks for your great and enduring help.
Search found 9 matches
- Sun Sep 20, 2009 21:20
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
- Thu Sep 10, 2009 10:46
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
Re: Weird inconsistencies with getFont() and getPixelRect()
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(...
- Wed Sep 09, 2009 20:12
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
Re: Weird inconsistencies with getFont() and getPixelRect()
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(...
- Wed Sep 09, 2009 08:55
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
Re: Weird inconsistencies with getFont() and getPixelRect()
No problem. I really appreciate your effort, thanks.
- Wed Sep 09, 2009 07:13
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
Re: Weird inconsistencies with getFont() and getPixelRect()
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...
- Tue Sep 08, 2009 11:35
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
Re: Weird inconsistencies with getFont() and getPixelRect()
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...
- Mon Sep 07, 2009 19:20
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
Re: Weird inconsistencies with getFont() and getPixelRect()
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...
- Mon Sep 07, 2009 15:36
- Forum: Help
- Topic: [solved]Weird inconsistencies with getFont(), getPixelRect()
- Replies: 15
- Views: 9407
[solved]Weird inconsistencies with getFont(), getPixelRect()
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...
- Thu Jul 30, 2009 17:08
- Forum: Modifications / Integrations / Customisations
- Topic: Quick Text Question
- Replies: 3
- Views: 4420
Re: Quick Text Question
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...