Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change cursor to pointer for specific nodes with Behavior.DoNothing (Read 1876 times)
ChristianC
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Jun 24th, 2015
Change cursor to pointer for specific nodes with Behavior.DoNothing
Jun 24th, 2015 at 9:56pm
Print Post  
Hello,

I want to change cursor when hovering over specific nodes from default to pointer.

The behavior of the diagram is set to DoNothing, because we do not want anything selected or changed.

Can this be done? I noticed that the canvas element always gets the style cursor=default.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change cursor to pointer for specific nodes with Behavior.DoNothing
Reply #1 - Jun 25th, 2015 at 8:11am
Print Post  
Hi,

Check the setMouseCursor code from this thread:
http://mindfusion.eu/Forum/YaBB.pl?num=1429254132

You should be able to override it for DoNothingBehavior in same manner, and set the cursor based on what you have in node variable.

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


I Love MindFusion!

Posts: 10
Joined: Jun 24th, 2015
Re: Change cursor to pointer for specific nodes with Behavior.DoNothing
Reply #2 - Jun 25th, 2015 at 8:36am
Print Post  
Perfect. Worked. Thank you very much  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint