LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there something similar to a MenuDimmerCallback?

Planning to use menu functions in LV and not having used them till now, I need some conceptual help.
In CVI you can define a MenuDimmeCallback function: a function executed only when the user clicks on the menu bar. In that function you can test program condition and dim some menu items not available or executable in the situation you are. This is particularly useful in that you don't need to update the menu structure every time your program conditions change, but you have to evaluate the actual situation when and only the user shows menus.
Is there something similar in LV?
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 3
(2,655 Views)
I haven't worked with CVI but given your explanation, I would say that LabVIEW handles menus a little differently. Under the application control>>menu palette there is a function called "Get Menu Selection". This can be placed in a loop to monitor if a menu item has been selected. Timeout will be false when it has and then you process the selection.

However, this would be too late to use as a trigger to change menu dim because the selection has already been made. What you are asking is when the menu has been selected and no item clicked. In LabVIEW, you can modify the look of the menu any time you wish using the other functions in the menu palette. You don?t have to wait for the menu to be selected.

I hope this helps?

Michael Aivaliotis


Michael Aivaliotis
VI Shots LLC
0 Kudos
Message 2 of 3
(2,655 Views)
> Is there something similar in LV?

Not at this time. Currently the menus do not synchronize with the UI.
You can have the menus lock out other menu selection until you wait
for the next menu selection, and this is quite common.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,655 Views)