ToolTip for indicator margin?

SyntaxEditor for WPF Forum

Posted 4 months ago by Andrea
Version: 20.1.0
Avatar

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)?

Comments (3)

Posted 4 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

Posted 4 months ago by Andrea
Avatar

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. 

Posted 4 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

The latest build of this product (v24.1.5) was released 4 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.