ToolTips GraphLinks


#1

Has anyone solved the ability to use a graphlink with a tooltip?
It’s possible with GoNode by setting “ToolTipText”.
But there’s no referring property for a GraphLink.


#2

From the FAQ:

How do I show a tooltip for an object instead of for the whole view?

For objects that are instances of GoNode, you can just set the GoNode.ToolTipText property. That is just a string for each node.

For other classes, or if you want to compute the tooltip text string dynamically, you should override the GetToolTip method in your object subclass:

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

public override String GetToolTip(GoView view) {

return “Temperature: ” + this.Temperature.ToString();

}