Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.
Add the ability to configure a contextual menu when a user right-clicks a control or an indicator. Configurable in the properties of the objects and available triggers for the event structure.
Add the ability to configure programmatically a contextual menu when a user right-clicks a control or an indicator. Configurable in the properties of the objects and available triggers for the event structure.
Like I said above, this is already available. By using the 'Activation?' event to trap the right click, you can build any menu you want on the fly and then allow the user to select from it. The 'Selection (User)' event will then fire and tell you what they chose so you can take the appropriate action. I have attached images from a simple example VI to demonstrate this.
Do you know in what version this was added? I have used home grown submenu tools for so long that i never bothered to check until now.
Do you know if it is possible to complete eliminate the default items in the submenu? I did not find a way to do so.
If not then i would add another precision :
Add the ability to completely configure programmatically a contextual menu when a user right-clicks a control or an indicator without the deafult items. Configurable in the properties of the objects and available triggers for the event structure.
> Is it possible to trigger the contextual menu with a left click?
If you use the Mouse Down? event (note the ?, it's important), you can change the event data so that the button is 2 (the right button). This will basically change the left click to a right click.
Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.