Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Nodelistview tooltip (Read 1702 times)
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Nodelistview tooltip
May 15th, 2020 at 2:43pm
Print Post  
Hi, is there a way of showing a node's tooltip while it is within the Nodelistview?

I've also noticed that no events are firing, specifically the MouseEnter, MouseMove, and MouseLeave events.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Nodelistview tooltip
Reply #1 - May 18th, 2020 at 6:52am
Print Post  
Hi,

Try something like this -

Code
Select All
var toolTip = new ToolTip();
foreach (Control control in nodeListView.Controls)
{
	if (control.Name == "list")
	{
		var list = (ListBox)control;
		list.MouseMove += (sender, args) =>
		{
			var idx = list.IndexFromPoint(args.Location);
			if (idx >= 0 && idx < list.Items.Count)
			{
				var dnode = (DraggedNode)list.Items[idx];
				var node = dnode.Node;
				toolTip.Show(node.ToolTip, list,
					args.Location.X + 12, args.Location.Y + 12);
			}
		};
		break;
	}
} 



We'll try to implement built-in tooltips for upcoming release.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Re: Nodelistview tooltip
Reply #2 - Jan 20th, 2024 at 4:45pm
Print Post  
PeteWhite wrote on May 15th, 2020 at 2:43pm:
Hi, is there a way of showing a node's tooltip while it is within the Nodelistview?

I've also noticed that no events are firing, specifically the MouseEnter, MouseMove, and MouseLeave events.


Hi, I know this is an old topic, but the events highlighted above are still not working. Any advice would be appreciated.

Cheers,

Pete
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Nodelistview tooltip
Reply #3 - Jan 22nd, 2024 at 10:00am
Print Post  
Hi,

Try this build -
https://mindfusion.eu/_temp/nodelist_events.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Re: Nodelistview tooltip
Reply #4 - Jan 22nd, 2024 at 11:16pm
Print Post  
Thanks, will that work with dotnet8 ?

Cheers,

Pete
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Nodelistview tooltip
Reply #5 - Jan 23rd, 2024 at 6:12am
Print Post  
It should work.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Re: Nodelistview tooltip
Reply #6 - Feb 4th, 2024 at 5:04pm
Print Post  
Thanks Slavcho, that's working great now.

Another question... is there a way to define the radius of the corners of the rounded rectangle in the NodeListView? When dragged onto the DiagramView they look ok, but are a bit "sharp" for my liking in the NodeListView.



Cheers,

Pete
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Nodelistview tooltip
Reply #7 - Feb 5th, 2024 at 11:29am
Print Post  
Hi Pete,

Try this build, it now draws the nodes in specified measure unit (millimeter by default) so should look the same as in diagram -

https://mindfusion.eu/_beta/fcnet702.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
PeteWhite
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Apr 7th, 2020
Re: Nodelistview tooltip
Reply #8 - Feb 5th, 2024 at 5:20pm
Print Post  
That's brilliant.

Thanks Slavcho, as always, excellent, and speedy customer support Smiley

Cheers,

Pete
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint