Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change mouse style while dragging item from nodelistview (Read 2160 times)
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Change mouse style while dragging item from nodelistview
Oct 30th, 2013 at 6:47pm
Print Post  
Hi,

How can i customize the mouse style while i drag shapes from nodelistview.
While dragging i need to show some styles and while mouse is outside the diagram canvas i need to show not allowed mouse style.

Is it possible?

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change mouse style while dragging item from nodelistview
Reply #1 - Nov 1st, 2013 at 2:09pm
Print Post  
Hi Kiran,

If you are already using the code from http://mindfusion.eu/Forum/YaBB.pl?num=1382213241 to show node icons while dragging, you could draw a stop icon image in the canvas' context instead of the node's image when you detect that the pointer is not over the diagram. You can find out if the diagram contains the pointer location by checking if e.target refers to the diagram's canvas element at the time when onMouseMove is called. Or if not using a canvas icon, just change document.style.cursor from onMouseMove depending on where the mouse pointer is located.

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