Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to keep the tooltip of the shape node longer (Read 2129 times)
Jackson_He
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jan 14th, 2009
How to keep the tooltip of the shape node longer
Jan 14th, 2009 at 9:00am
Print Post  
I need to keep the tooltip of the shape node until I moved mouse leave.  Undecided I only find the tooltip delay property for diagramView to sets the time that passes before a tool-tip appears when the mouse hovers over an item. Can any one help me?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to keep the tooltip of the shape node long
Reply #1 - Jan 14th, 2009 at 10:42am
Print Post  
We've added a DiagramView.ToolTipControl property here:
https://mindfusion.eu/_beta/fc_ttip.zip

Set this to make the tooltips stay visible until the mouse pointer moves:
diagramView.ToolTipControl.AutoPopDelay = 0;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Jackson_He
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Jan 14th, 2009
Re: How to keep the tooltip of the shape node long
Reply #2 - Jan 15th, 2009 at 1:42am
Print Post  
Sad, Thank you for your reply. But it seems little help to me. I used the dll file you given, and followed your step to write codes. It could not keep the tooltip for any longer than 10 seconds, whatever I set AutoPopDelay to 0 or 50000000. And if I set this property to -1, it will be crashed.
I tried used the winform tooltip as bellow:

Button button1 = new Button();
ToolTip tooltip = new ToolTip();
tooltip.AutoPopDelay = 0;
tooltip.SetToolTip(button1, "haha");

This does the same effect.
So can you advise me another solution?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to keep the tooltip of the shape node long
Reply #3 - Jan 15th, 2009 at 9:05am
Print Post  
Indeed, the MSDN topic states that the maximum time you can delay a popup is 5000 milliseconds, so I suppose there is no way to overcome this just by setting the tooltip control properties.

Instead, you could explicitly use the Show method of the tooltip, e.g. calling it from the MouseMove event:

Code
Select All
private void diagramView_MouseMove(object sender, MouseEventArgs e)
{
	DiagramItem item = diagram.GetItemAt(
		diagramView.ClientToDoc(e.Location), false);
	if (item != null)
		diagramView.ToolTipControl.Show(item.ToolTip, diagramView, e.Location, int.MaxValue);
}
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint