LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to hide menu selections

I built menus using the "Menu" blocks.
I was wondering if there is a way to have certain menu items highlted grey (not selectable), until operator select another menu & answer fill in the info in it.
I'm attaching the Menu Selection module I did ( I know other modules well come in as bad), but well give you idea what I'm talking about.
When the program runs, "Mode Select" menu runs first, then I would like to force the operator to select "0-Span" next (have rest of menus highlted grey, except the "Inspection End") This is not the only one depandant.
Once "0-Span" is done, then they can select "YM Assgin" but not the rest of the menu, after that they can select "Sample Set1", but "Sample Set2&3" are heighlted grey until Sample Set 1 is selected. You can see what I'm aiming for is to have certain items on menu depandant on other before allowing its selection.
 
Thank you.
 
0 Kudos
Message 1 of 5
(3,207 Views)
Your attachment did not make it. 😞
0 Kudos
Message 2 of 5
(3,191 Views)
You can use the VI Set Menu Item Info for this.  Right after menu creation, perhaps when the application first loads up, set all the disabled menu items except the first.  When the first menu is chosen and valid input is obtained, call the same VI and enable the menu items as desired.
0 Kudos
Message 3 of 5
(3,190 Views)

Hi,

Have a look at this VI.

Here i am initially disabling certain menu options

later, i programatically enable them during the run, by the click of a boolean.

Hope u can get an idea on how to implement this in your application.

Regards

Dev

 

 

0 Kudos
Message 4 of 5
(3,183 Views)
Happy New year & Thanks for the replies all. Sorry about not attaching the file.
here it is. Just in case you were curious what I did 🙂
I will be looking at the Menu file to see how its working.
Thank you
 
Shadi
0 Kudos
Message 5 of 5
(3,165 Views)