LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run-time menu items: unchecking checked item by selecting same item / LV7.1

Want to do the classic selection/deselection  check/uncheck run-time menu item capability seen in many applications.

I created a small test program that, if a run-time menu item is already checked, and you select it, it should uncheck it and deselect it. (See attached.)  However, the 'Get menu item info' always seems to come back with a false for 'checked' and therefore retains or places check mark next to item.

For example, run the code and select 'x' under the 'test' menu.  Then select  'x' again (which I was hoping would deselect via unchecking).  You will see the check mark stays with the 'x'.

Any thoughts on this are appreciated.

Sincerely,

Don
0 Kudos
Message 1 of 3
(2,473 Views)
You forgot to wire the item tag on the first menu node.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 3
(2,466 Views)

Yikes, I stared at this for several minutes and did not see this.  Thanks for your second set of eyes.  I guess I should have just put this down Friday afternoon and looked at it again on Monday morning. It had been a long week.

Thanks again,

 

Don

0 Kudos
Message 3 of 3
(2,454 Views)