tooltip issue

Oct 13, 2011 at 3:36 PM


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: 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 5: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 2:28 PM

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