Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Tooltip not Displaying when Hovering over Nodelist Node (Read 2204 times)
alukes
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Jul 1st, 2011
Tooltip not Displaying when Hovering over Nodelist Node
Mar 13th, 2019 at 11:15pm
Print Post  
When I hover over a node in node list, I see ontooltip called in the console when using:

var onTooltipOriginal = MindFusion.Diagramming.Diagram.prototype.onTooltip;
MindFusion.Diagramming.Diagram.prototype.onTooltip = function ()
{
onTooltipOriginal.apply(this);
console.log('onTooltip called');
}


var shapes = ["Rectangle", "Decision", "RoundRect", "Terminator"];
    var names = ["Action", "Decision", "Select", "Link"];
    var tooltip = ["informs user how to perform an action. Can only click next", "asks a user a question and allows them to answer yes or no", "asks the user a question and provides muultple ways to answer it", "allows the user to go to another project or website under the control of the flowchart creator"]
    for (var i = 0; i < shapes.length; ++i) {
        node = new MindFusion.Diagramming.ShapeNode(diagram);
        node.setText(names[i]);
         node.setTooltip(tooltip[i]);
        node.setShape(shapes[i]);
        node.setFont(new Font("sans-serif", 5, true, false));
        node.setBrush(brush2);
       nodeList.addNode(node, names[i]);
    }

However, no tooltip is displayed. Also is there a way to turn off tooltips once the node has been dropped into place?

downloaded the latest version 3.3
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Tooltip not Displaying when Hovering over Nodelist Node
Reply #1 - Mar 14th, 2019 at 2:22pm
Print Post  
Hi,

Currently the NodeListView control doesn't have the ability to display tooltips. We'll consider it for the next release.

Regards,
Lyubo
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Tooltip not Displaying when Hovering over Nodelist Node
Reply #2 - Mar 28th, 2019 at 1:55pm
Print Post  
This build should display nodes' tooltips in NodeListView -
https://mindfusion.eu/_beta/jsdiag332.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
alukes
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Jul 1st, 2011
Re: Tooltip not Displaying when Hovering over Nodelist Node
Reply #3 - Mar 29th, 2019 at 10:38pm
Print Post  
Thanks! works great!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint