A couple questions about tooltips
Posted: Mon May 13, 2013 09:42
I've been trying using tooltips in these days. And there are some things i can't understand about how they work. No, not the injectTimePulse.
Because as far as "working" goes, they're working indeed. The problem is, well...
...that is, it gets cut out at the end of the screen. I've seen the demos, and it doesn't happen anything like that there (note that while the look is customized, i used the same exact looknfeel code from taharezlook for them - changing the images, obviously - and i haven't customized anything about how widget work). I supposed it would position itself as to avoid this happening, like in the various demo. What am i doing wrong here, then? Is the text too long - and that would bring to the second question, that is...
Tooltips and multilines. Oh, i've read some old threads. Some from the long past 2008 suggested to use the newline char ( '\n' ) in the text of the tooltip, or putting directly a line in the layout. Well, if i put the newline char, it gets simply printed along with the rest of the text. So i tried linewrapping with the horzformat property in the tooltip looknfeel, but it hadn't done absolutely anything. So...any idea?
Obviously, there aren't any errors or warning in the cegui log files.
Regarding the log, anyway, here is the essential section.
Because as far as "working" goes, they're working indeed. The problem is, well...
...that is, it gets cut out at the end of the screen. I've seen the demos, and it doesn't happen anything like that there (note that while the look is customized, i used the same exact looknfeel code from taharezlook for them - changing the images, obviously - and i haven't customized anything about how widget work). I supposed it would position itself as to avoid this happening, like in the various demo. What am i doing wrong here, then? Is the text too long - and that would bring to the second question, that is...
Tooltips and multilines. Oh, i've read some old threads. Some from the long past 2008 suggested to use the newline char ( '\n' ) in the text of the tooltip, or putting directly a line in the layout. Well, if i put the newline char, it gets simply printed along with the rest of the text. So i tried linewrapping with the horzformat property in the tooltip looknfeel, but it hadn't done absolutely anything. So...any idea?
Obviously, there aren't any errors or warning in the cegui log files.
Regarding the log, anyway, here is the essential section.
Code: Select all
Version 0.7.9 (Build: Jan 22 2013 Debug Microsoft Windows g++ 4.7.1-dw2 32 bit)
Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module.
XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI
Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine.
Scripting module is: None