UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Style File Menu with Submenu

I would love to be able to have a file menu driven user interface for some code I am currently working on.  I would like to have the user be able to choose from a dropdown menu out of a menu bar, just like in windows.  I know that we cant customize the labview menu bar but we can remove it during runtime.  Does anyone know how to create a good looking menu bar complete with submenues for items and submenues for submenues...  If anyone has any idea how to implement this I would love to hear it.

Regards

0 Kudos
Message 1 of 8
(10,179 Views)

You can create your own custom menus with submenus right in the LabVIEW environment. See the following documents on this topic.

http://digital.ni.com/public.nsf/allkb/17803AA31C8C07C986256CFD0080D609

http://decibel.ni.com/content/docs/DOC-4166

http://decibel.ni.com/content/docs/DOC-5788

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 2 of 8
(4,732 Views)

Thank you, this looks very promising!  I will have to play around with it and see if I can get submenues, from the documentation it looks like I can.

Regards,

Jon

0 Kudos
Message 3 of 8
(4,732 Views)

<see following reply>

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 4 of 8
(4,732 Views)

Here's a quick example.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 5 of 8
(4,732 Views)

That is exactly what I was looking for!  I never new about the custom run time menu, thank you for teaching me.

Regards,

Jon

0 Kudos
Message 6 of 8
(4,732 Views)

Is there any way to edit the run time menu at run time?  I am guessing it all has to be done while editing.

0 Kudos
Message 7 of 8
(4,732 Views)

You can make changes to the menus at run-time using the functions in the Menu palette in the Dialog & User Interface function palette.

menuspalette.png

Look at the examples in the following folder for more info on how to use these.

C:\Program Files\National Instruments\LabVIEW 8.6\examples\general\menubars.llb

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 8 of 8
(4,732 Views)