LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating GUI eg popup menus

I want to make advanced GUI capabilities like menus,dialog boxes etc.
0 Kudos
Message 1 of 2
(2,753 Views)
If you select Run-Time Menu from the edit menu of a VI you will get an interface that allows you to create your own custom menu for it. You can use an event structure to get menu selection events, you'll find examples if you use the find example function from the help menu and search for run-time menu.

Dialog boxes can be done in a number of ways. You can make your own by making a VI that acts as a dialog box, or you can use the in-built ones from the time % dialog functions palette. If you want to use standard Windows dialogs you can find examples here on the zone that do .dll calls to achieve that (Win32-API).

If you want tree-controls you can find one on the List % Table palette, or you can use ActiveX to use a third-party one.

Tab-controls is available
from the Container palette,
standard Windows dialog controls (ring controls, slides, status bars, checkboxes etc.) can be found on the dialog palette.

If you want contextual menus you can have a look at the following solution:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000084640000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=contextual+menus&USEARCHCONTEXT_QUESTION_S=0

There is a lot of possibilities built into LV. Those that are not directly on the palettes and in the menus of LV can often be achieved using .dll calls, CINs, ActiveX or some creative tricks. There are limitations, it's very difficult to implement real child windows e.g. due to the fact that LV menus are not standards Windows type menus (the best I've seen so far is from the maker of G Toolkit), but let us know what it is you are missing and we'll see if there's a solution.
0 Kudos
Message 2 of 2
(2,753 Views)