LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Different tree shortcut menu for parent and child items

Solved!
Go to solution

Hi people,I am trying to write a vi with with a tree control..i have been able to create a shortcut menu  for the parent item by right clicking on the tree control->Advanced->Run-Time->Shortcut Menu->Edit....However ,i would like to create two shortcut menus,one specific for the parent item and the other specific for the child items....any help?thanks

0 Kudos
Message 1 of 3
(3,550 Views)
Solution
Accepted by topic author alpony01

I think you need to dynamically create your run-time menu depending on the item that was selected in the tree control. You can do that using the run-time menu events and the menu functions in LabVIEW.

 

There's a palette for that:

2015-10-22_11-52-42.png


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 3
(3,527 Views)

problem solved...using the event "shortcut menu acitvation",i have used point row column invoke node to identify the name of the clicked item..then i have have used the "delete munu items" vi from the menu palette to delete the previous short cut menu and insert menu items to create the new shortcut menu

0 Kudos
Message 3 of 3
(3,518 Views)