10-10-2013 08:02 AM
Hello:
In the Labview project explorer, click left mouse select one item. When I click right mouse, one item is also selected and shortcut menu is shown. I create a tree control in my VI. when I click right mouse, a shortcut menu was shown, but the item the mouse click was not selected. How realize the function?
thanks!
10-10-2013 10:02 AM
Good Afternoon Tsotm,
In order to allow me to help you, I would like to clarify what you are asking. As I understand it, you want code which, when you right click an element in a tree menu, will highlight that element and open a menu.
If that is correct, then is it a custom menu which you wish to open?
10-10-2013 10:34 AM
Hello,Alastair C
It’s correct. The custom menu is the tree control shortcut menu which I created.
Advance -- > Run time shortcut menu -- > Edit
Thanks you for your help.
10-10-2013 10:41 AM
Its called a custom Runtime Menu for a reason. It only works at runtime (not in edit mode) doe you have an runtime menu activation event in the vi that contains the control to handle the menu actvation event?
10-10-2013 09:19 PM
I create a Tree: shortcut menu selected in the event structure. When I right click an element in a tree, it shows the shortcut menu. But I also want to highlight the item which right clicks selected.
thanks