PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.22k stars 465 forks source link

How to make tooltip by WPF Window in FastColoredBox? #203

Closed typicalHuman closed 4 years ago

typicalHuman commented 4 years ago

FastColoredTextbox has a method fastBox.ToolTip.Show(string text, IWin32Window wind), how i can convert my WPF window to IWin32Window? This code won't help https://stackoverflow.com/a/10296513/12460603. My window consist of simple button and nothing else.

WrongBit commented 4 years ago

@typicalHuman Instead of using FCTB internals you can always show hint for WindowsFormsHost (which you use anyway for keeping FCTB).

typicalHuman commented 4 years ago

@WrongBit, the hint doesn't display for WindowsFormsHost

WrongBit commented 4 years ago

@typicalHuman It's your fault with code. Check proper examples in I-net. WFH can display hints, I checked it before posting my answer.