Jump to content

Get Position of Right-Click


jacobson

Recommended Posts

I am finally checking out the new 2015 feature that allows you to add features to your right click menu and was having trouble figuring out how to do something.

 

I wanted to start with a very simple project that would allow you to create an IMAQ image container when right-clicking on an image reference wire/node rather than just a reference. What I cannot figure out is how to get the location of where the user spawned the right-click menu. I want to mimic the behavior or creating an indicator from a wire where it will place the block diagram terminal where the user right-clicked.

 

Any help would be appreciated.

 

Matt J

Link to comment

The VIs should have the information (I assume that's what I used for this plugin - https://decibel.ni.com/content/docs/DOC-43445 ), but even if not, you should get the reference of the object(s) you invoked the plugin on and you should be able to use that.

 

I'm also pretty sure there's a method for creating an indicator from a terminal, which also connects the indicator to the terminal.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.