LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Edit and readout context menue at runtime

Hi there!

 

I've a question with editing and readout context menue at runtime (see attachement!)

 

Let me explain the problem (according to attached VI):

 

First the user right-click's on the table.

Then the column-header text (here 'Test1'..'Testn') is inserted in the context menue. I need that because the columns all should become

different functions selectable via context menue.

 

When now rigth after inserting the new context menue tag the choosen tag is readout the error occures (For testing this you have to

check the button "Force_Error(T)")

 

 

Or in other words, is it possible to get a reference to the context menue without using the event structure!?

 

Is there any solution about this!?

0 Kudos
Message 1 of 3
(2,576 Views)

Do not mix up event based programming with "traditional one". Since you use the event "Shortcut Menu Activation" you should use the "Shortcut Menu Selection (User)" event to catch the selection made by the user.

You have to add this in the event structure as a new case.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(2,551 Views)

Thank for your answer, that works!

 

I don't want to mix traditional programming with event programming. But I need to switch the language of the context menue.

This would be easy doing this once by program start-up, therefore a reference to the context menue would be helpful...!

 

 

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