Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Query about right click on shape nodes (Read 2823 times)
Sivaraj p
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Mar 14th, 2013
Query about right click on shape nodes
Mar 20th, 2013 at 2:31pm
Print Post  
Hi stoyo,
   I am facing difficulty in proceeding with right click property on shape nodes that are drawn on a diagram.

From a Shape tool box, when I drag and drop a shape node to a diagram, and then right click it, i can't catch that event in shapenodename_mouseRightButtonDown event.

However, if i create a  mouseRightButtonDown event for the diagram,and if i click anywhere in the diagram(even shape node), I am able to track that event during debugging.

I want the event to be raised only for shape node right click. Could u pls tell how to implement this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Query about right click on shape nodes
Reply #1 - Mar 20th, 2013 at 2:40pm
Print Post  
Hi,

Handle the Diagram.NodeClicked event, check if e.MouseButton == Right, and find out what node is clicked via the e.Node argument.

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


I Love MindFusion!

Posts: 21
Joined: Mar 14th, 2013
Re: Query about right click on shape nodes
Reply #2 - Mar 22nd, 2013 at 5:45am
Print Post  
Hi stoyo,
I am trying to disable ctrl+c, ctrl +v for the shapenodes.
Below is the code I tried.. its not working.. Could u pls help me in this?

<diag:ShapeNode Shape="Rectangle" Name="rectangle" Bounds="10,2,75,75">
                <diag:ShapeNode.InputBindings>
                    <KeyBinding Key="V" Modifiers="Control" Command="ApplicationCommands.NotACommand" />
                    <KeyBinding Key="C" Modifiers="Control" Command="ApplicationCommands.NotACommand" />
                </diag:ShapeNode.InputBindings>
            </diag:ShapeNode>
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Query about right click on shape nodes
Reply #3 - Mar 22nd, 2013 at 6:41am
Print Post  
Hi,

It should work if you set this for the Diagram instance:
http://mindfusion.eu/Forum/YaBB.pl?num=1335340756/2#2

I don't think these commands ever reach individual nodes.

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