UI Interest Group Blog

Community Browser
Showing results for 
Search instead for 
Did you mean: 

create a (right click) menu in a picture  


First I hope I have posted in a relevant forum.  To improve the UI interactivity I have want to include a picture with some simple graphics (omitted for simplicity) representing an area in my UI.  I would like to create Firstly; objects based on coordinates in this picture and and Secondly; be able to click or right click the objects to get a menu like in the attaced  .jpg

To solve the first task I basically tracked the coordinates and printed a textbox. Then by monitoring the coordinates for the mouse I know if I clicked the the textbox "object". I assume that there might be more efficient ways to create these object, having properites or nodes that would help in my second task, which is in either case challenging..

Thankful for suggestions!



Knight of NI

Hi Nick,

as long as those "objects" are just part of your image shown in the picture indicator you have to keep track of their positions on your own.

To create that menu you could open a subVI near your mouse postion showing the required menu entries…

Best regards,
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Active Participant

JD Powell created an excellent example of a custom right click menu, available here: http://lavag.org/files/file/226-shortcut-menu-from-cluster/

Thoric (CLA, CLED, CTD and LabVIEW Champion)