Applies to: Nevron Diagram for .NET
How to dynamically change the text in a tooltip?
The RequestTooltip method of the NInteractivityManager class is called by all objects which need to display a tooltip. You can change the text in a tooltip dynamically e.g. you can change tooltip content before it is displayed. You need to do the following:
1. Subclass the NInteractivityManager
2. Override the RequestTooltip like this:
[C#]
public
override
void
RequestTooltip(
string
tooltip)
{
// change the tooltip text here
// call the base implementation
base
.RequestTooltip(tooltip);
}
[VB.NET]
Public
Overrides
Sub
RequestTooltip(tooltip
As
String
)
' change the tooltip text here
' call the base implementation
MyBase
.RequestTooltip(tooltip)
End
Sub
3. Assign an instance of your subclassed manager to the InteractivityManager property of the view.
Article ID: 29, Created On: 10/5/2010, Modified: 11/15/2010