How to display additional information in a tooltip?

SyntaxEditor Web Languages Add-on for Windows Forms Forum

Posted 10 years ago by Charles Mussely
Version: 4.0.0280
Avatar
I am displaying a xml document.

I have the following node written in my document:
<Numeric Id="field1" Caption="$loc(field1_Loc)" />
I would like to be able to display the value of $loc(field_Loc) (it is defined elsewhere in the xml) in a tooltip when the mouse is over the caption attribute. The default XSD tooltip content should still appear.

How can I do that?

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Charles,

If you inherit our XmlSyntaxLanguage class and override OnSyntaxEditorViewMouseHover, you can call the base method then alter the e.ToolTipText however you need. By calling the base method first it will be populated with our default tip text if any.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 10 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.