01-12-2010 05:03 AM
Hi,
I want to have a different context menu for an intensity graph and its Z scale. This work fine if the standard menu is keept but problems appears as soon as the context menu is customized.
If the context menu of an intensity graph is customized, this menu is taken also for its Z scale. I work around this feature, and programmatically modifiy the context menu when user click on Z scale. So far so good. BUT I introduce for this programmatically customized context menu some standard items such as APP_SC_ADD_MARKER, and when user select those standard items, nothing appends. I mean, that the item is readed, but in that example no marker is added on the Z scale from the run time engine. Where is my error?
Please find the test VI enclosed.
Thank you for tips!
01-19-2010 03:11 AM
Hi aleveque,
once you modify the run-time menu, you have to handle the events in your program:
From the LabVIEW Help:
"After you customize a run-time shortcut menu statically or programmatically, you must configure an Event structure to handle each menu item in the custom menu."
Regards,
01-19-2010 03:39 AM
Hi Andreas,
It ist right, but it means, that standard event such as ADD_MARKER should have to be programated "per hand". I expected that LV perform standard tasks without new programation of developer. I am agree, I should configure my Event structure to handle user customized menu items, but if I programmatically introduced STANDARD items, I am surprised, I should also handle these events!
Regards,
Adelina
01-19-2010 03:50 AM
Hi Adelina,
from my perspective you shouldn't have to program these functions manually, but unfurtunately thats the way it is right now.
Here is the link to the product suggestion center:
http://digital.ni.com/applications/psc.nsf/default?openform
Please leave a request there. The more people put in a request the more likely it gets it will be implemented in an upcoming LabVIEW version.
Regards,
01-19-2010 04:10 AM
Hi Andeas,
I will do it.
Thanks.
Adelina