LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing menubar pulldown while modifying menu items

Solved!
Go to solution

Hello,

 

I am using a producer/consumer design.  Within the producer I have an event structure that generates messages for the consumer based on the event.  One of the events in the event structure is set to get the menu selection.  Within the consumer loop, some of the states change the menubar items.  For example, if the mode of the program is changed from auto to manual, the menubar items change accordingly.

 

The problem I am having is that if the mode is changed to auto, for example, and then a menubar pulldown is accessed quickly afterward (sometimes happens accidentally even), before the menubar item change happens, there is an error and labview crashes.  I am guessing that the problem is that the menubar is being accessed by the user while it is trying to be modified. ?? Disabling the menu tracking until the items are successfully changed does not help, because it doesn't appear to prevent you from pulling a menu down, only from making a selection.

 

Any advice?  This is the problem as it appears to me, anyhow.

 

Thanks as always!

Greg

v7.1
0 Kudos
Message 1 of 3
(2,596 Views)
Solution
Accepted by topic author gstanczak

You can set Cursor "Busy" till the time your Menu is updated.

So user will not be able to click Menu. Smiley Happy

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 2 of 3
(2,588 Views)

That's it!  I knew of these functions, but I've never used them, and it didn't occur to me to use them now.

 

Thanks a lot.

 

-Greg

v7.1
0 Kudos
Message 3 of 3
(2,577 Views)