This project is read-only.

tooltip issue

Oct 13, 2011 at 4:36 PM

Hi,

I have a problem with one of my tooltips and I would be grateful if someone could help me. I have it set to that something is displayed on the tooltip when certain text is hovered, like so:

word = scintilla1.GetWordFromPosition(e.Position);
[...]
if (word == "test")
{
 scintilla1.CallTip.Show(text, e.Position);
}

The problem is, although it works fine, if all of the text shows up on one line, it extends beyond the screen and not all of it becomes visible. Here is a visual example to show my problem: http://i52.tinypic.com/mtat1l.png. As you can see, there is text after the +/- but it doesn't show up on screen.

Isn't it possible to split up the tooltip text into individual lines to solve this problem? If so, how?

 

Oct 13, 2011 at 6:38 PM

Scintilla CallTips don't automatically wrap. You'll have to insert the line breaks (\r\n) yourself where you need them.

Oct 16, 2011 at 3:28 PM

I see. Thanks for letting me know, I fixed it.