LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

place checkmark in shortcut menu

Solved!
Go to solution

Here is the catch 22.

 

I need 2 things to add a checkmark to a selected menu item.

 

1. The menu reference, so I can use the  Get Menu Item Info Function and Set Menu Item Info FunctionsubVIs to check and uncheck the item.

2. I need which item was selected.

 

Those two things are not available in the same event structure frame. I don't know how to pass the menu reference to the frame that catches the item tag. Don't suggest a incodator, global, or functional global. That don't work. As best I can tell, the menu reference is only good in the Activation? event frame.

Doug Ferguson

www.southerndaqsolutions.com
0 Kudos
Message 11 of 13
(580 Views)

Hi Doug,

you don´t need the refnum, the only thing you need is to know which element was selected and store it in your internal buffer, to draw the checked mark at the next call.

See the attached example please.

 

Mike

Message 12 of 13
(568 Views)

Sometimes I can't see the trees because of the forest. Nice simple solution. I guess I get caught up in the complexity of property nodes and events that I miss the simplest solution.

 

Thanks.

Doug Ferguson

www.southerndaqsolutions.com
0 Kudos
Message 13 of 13
(566 Views)