03-15-2008 08:40 AM
03-15-2008 11:36 AM
03-15-2008 12:07 PM
dan_u wrote:
I don't think there's a property (but I agree it would be useful sometimes).
If you want to access the menubar refnum for a VI I think you have to pass it as an argument or store it somewhere (indicator, LV 2 style global, global, ...) where you can access it from the other VI.
Daniel
03-15-2008 12:12 PM
03-15-2008 12:47 PM
03-15-2008 12:55 PM
03-17-2008 12:58 PM
@dan_u wrote:
I don't think there's a property (but I agree it would be useful sometimes).
If you want to access the menubar refnum for a VI I think you have to pass it as an argument or store it somewhere (indicator, LV 2 style global, global, ...) where you can access it from the other VI.
03-18-2008 01:41 AM
eaolson wrote:
A functional global is what I wound up using. It just seems odd to me that there's no other way to get access to that reference.
It also seems counter-intuitive to me that a Shortcut Menu reference is only valid inside that particular frame of the Event Structure that caught it. If you're using a producer-consumer architecture, you can not send that refnum off to the consumer loop for handling; it can only used within that frame of the Event Structure.
03-18-2008 10:53 AM
@Pnt wrote:
I am not sure what you mean. The refnum seems to be accessible from everywhere .As i wrote above:You can store the Menu Reference to a global variable for example, and you can read it, in any vi you want, just like all variables.Note: Do not try to use a property note. Use the menu functions
01-06-2009 02:52 PM