Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to control the duration that a node tooltip is displayed (Read 2648 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
How to control the duration that a node tooltip is displayed
Jan 27th, 2013 at 7:59pm
Print Post  
Hi,

I have tooltips on my diagram nodes and they work fine.
However, if the text is very long, the tooltip closes before the user has had time to read it.  Very annoying.

Is there a way to set the display duration of a node tooltip?

Thanks in advance

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to control the duration that a node tooltip is displayed
Reply #1 - Jan 28th, 2013 at 8:53am
Print Post  
Hi,

You can set the tooltip dismiss delay with some Java reflection:

Code
Select All
var applet = <%= diagramView.AppletElement %>;
var scriptHelper = applet.getScriptHelper();
var tooltipManagerClass = scriptHelper.getClass().forName("javax.swing.ToolTipManager");
var tooltipManager = tooltipManagerClass.getMethod("sharedInstance", []).invoke(null, []);
tooltipManager.setDismissDelay(50000 /* milliseconds */);
 



We'll try to add a property for this in next version.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: How to control the duration that a node tooltip is displayed
Reply #2 - Jan 28th, 2013 at 2:20pm
Print Post  
Excellent.
Just what I wanted.
Thanks
Jim
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint