
v.20.1.1.0
Hello,
I'm wondering if you could make a suggestion for the best way to put a tooltip in the indicator margin (think that's what it's called, the region on the left of the line numbers)?
v.20.1.1.0
Hello,
I'm wondering if you could make a suggestion for the best way to put a tooltip in the indicator margin (think that's what it's called, the region on the left of the line numbers)?
Hello,
Indicators support a content provider that can be used to display IntelliPrompt quick info when hovering over an indicator glyph. Please see this documentation topic for details on how that works.
Thank you. I'm looking for guidance on adding a tooltip in the margin itself (regardless of whether there's an indicator or not). It seems like "IEditorViewPointerInputEventSink" on your link would help, but I cannot find the "debugging-related indicators sample" mentioned if it might have the needed information.
Hello,
The "IndicatorsDebugging" QuickStart is the one referred to by the documentation. It has a DebuggingPointerInputEventSink class where you can watch for mouse events. For that sample, it's watching for mouse button presses. The NotifyPointerHovered method on that class is where you could watch for hover events. And all the other mouse-related callback methods are there as well.
That being said, if you wanted to support quick info tips for various areas on the indicator margin, you could make a custom quick info provider instead, which is effectively what the built-in IndicatorQuickInfoProvider class does. It's just that the implementation that class only looks at indicator glyphs and nothing else. A custom quick info provider could handle other scenarios though. Contact our support team privately via email and reference this thread if you'd like a code sample of how that works.
Please log in to a validated account to post comments.