06-20-2010 03:14 PM - edited 06-20-2010 03:21 PM
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!?
06-21-2010 02:17 AM - edited 06-21-2010 02:19 AM
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
06-25-2010 10:45 AM
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...!