LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a menu selection from a right click menu?

Greetings all!

 

Goal: To create a runtime right click menu item for displaying in hex or ascii in a string indicator.  (the same way it's available in the developer mode)

 

So far:

I have used the "shortcut Menu editor" to create the menu items for a string indicator "Dispay Hex" "Display ASCII"

I have a event registered to that indicator for the event "Shortcut Menu Activation?"

 

Problem:

However, i'm at a loss as to how to retrieve whatever menu item I select.   The Getmenuselection generates an error that halts the program.

Additionally I would like to have a check box next to the correct selection depending on how the information in the indicator is displayed.

 

 

--Eximo

 

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 1 of 6
(2,718 Views)

Have you tried in that way?

 

Menu.png

 

 

Andrey.

0 Kudos
Message 2 of 6
(2,716 Views)

In addition - you don't need to handle Shortcut Menu Activation?. Normally you need this if you want to add some items dynamically, like this:

 

Menu01.png

0 Kudos
Message 3 of 6
(2,714 Views)

What about putting the check next to the menu item?  How is that accomplished?

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 4 of 6
(2,702 Views)

What do you want the check to represent?

 

It sounds like you are looking more for a radio button control.

Tim
GHSP
0 Kudos
Message 5 of 6
(2,694 Views)

@eximo wrote:

What about putting the check next to the menu item?  How is that accomplished?


If you mean "Checked" mark, use Set Menu Item Info:

 

Menu.png

 

 

Message 6 of 6
(2,679 Views)