viSci Posted October 26, 2009 Report Share Posted October 26, 2009 Is there any way to automated the process of installing right click user menu items into a set of controls and indicators? I thought it could be done with VI Scripting but have not found anything yet. Anybody have a suggestion? Ok, just figured out that you can use the event structure to catch a right click activation event which contains a menu reference property. From there you can install your custom menu items and then catch them right away in other event cases if clicked on. Quote Link to comment
Norm Kirchner Posted November 2, 2009 Report Share Posted November 2, 2009 Is there any way to automated the process of installing right click user menu items into a set of controls and indicators? I thought it could be done with VI Scripting but have not found anything yet. Anybody have a suggestion? Ok, just figured out that you can use the event structure to catch a right click activation event which contains a menu reference property. From there you can install your custom menu items and then catch them right away in other event cases if clicked on. Were you thinking something like this? {is a VI snippet for dropping into an 09 BD} http://screencast.com/t/k0kAwTitY delme.vi This code is intended to be run as an asynchronously running VI (IOW outside of any loop) All this does is adds the control name to the right click menu, but really since now you can capture the menu activation and add to the list, the world is your oyster. I'm really thinking some LVOOP could work wonders here. (side note: as with any asynchronously running VI, the termination process is always a gotcha, but I'm sure you'll figure out an elegant way around that) 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.