Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Set cursor state when diagram behavior set 'Behavior.DoNothing' (Read 3228 times)
EricHu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Oct 11th, 2013
Set cursor state when diagram behavior set 'Behavior.DoNothing'
Oct 12th, 2013 at 2:22am
Print Post  
The ShapeNode or DiagramLink will be clicked and do something after the diagram behavior set 'Behavior.DoNothing',but cursor state is default , could the state be set pointer?
Expecting your answer,thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Set cursor state when diagram behavior set 'Behavior.DoNothing'
Reply #1 - Oct 12th, 2013 at 6:50am
Print Post  
Try this:

Code
Select All
var DoNothingBehavior = MindFusion.Diagramming.DoNothingBehavior;
DoNothingBehavior.prototype.setMouseCursor = function (point)
{
	var item = this.diagram.getItemAt(point);
	return item ? "pointer" : "default";
} 



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


I Love MindFusion!

Posts: 4
Joined: Oct 11th, 2013
Re: Set cursor state when diagram behavior set 'Behavior.DoNothing'
Reply #2 - Oct 14th, 2013 at 1:38am
Print Post  
It works well, thank you very much.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint