Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Jquery context menu (Read 2208 times)
agelospanagiotakis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 27th, 2007
Jquery context menu
May 31st, 2014 at 4:35pm
Print Post  
Can i show a jquery context menu on right mouse click over a shapenode ?

i get the mouse x y position using

diagram.addEventListener(Events.nodeClicked, onNodeClicked);

function onNodeClicked(sender, DiagramEventArgs){
console.log("onNodeClicked");
console.log(sender);
console.log(DiagramEventArgs);
MousePositionX = DiagramEventArgs.mousePosition.x;
MousePositionY = DiagramEventArgs.mousePosition.y;
console.log(MousePositionX);
console.log(MousePositionY);
//show the jquery context menu and store the item on which the user clicked

}



  
Back to top
 
IP Logged
 
agelospanagiotakis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 27th, 2007
Re: Jquery context menu
Reply #1 - May 31st, 2014 at 7:59pm
Print Post  
like that
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Jquery context menu
Reply #2 - Jun 2nd, 2014 at 5:10am
Print Post  
You must first convert the diagram coordinates to pixels (the scale depends on Diagram.MeasureUnit and Diagram.ZoomFactor properties). You can find some sample code here:
http://mindfusion.eu/Forum/YaBB.pl?num=1387949353/1#1

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