Browse Source

TextArea: Always set the owner of the tooltip when shown.

Fixes SD2-1543 - Text editor tooltips only work in the file opened first when secondary monitor present.
Also fixes problems with showing tooltips when TextEditors are used on different levels in the form hierarchy within the same application.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4643 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Christian Hornung 16 years ago
parent
commit
c4d435a0e6
  1. 1
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs

1
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextArea.cs

@ -353,6 +353,7 @@ namespace ICSharpCode.TextEditor @@ -353,6 +353,7 @@ namespace ICSharpCode.TextEditor
p.Y = (p.Y - cp.Y) + (lineNumber * this.TextView.FontHeight) - this.virtualTop.Y;
}
p.Offset(3, 3);
toolTip.Owner = this.FindForm();
toolTip.Location = p;
toolTip.Description = text;
toolTip.HideOnClick = true;

Loading…
Cancel
Save