LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User dialog with back functionality

Hi!
I am trying to write a userdialog based on popups (to make it look like a standard Windowsdialog, like most installers (this is not an installer though)).
I need to have a "next" button to move to the next window, and a "previous" button to move to the previous window.
To make it extra difficult, I'm hoping to add some graphics tho the userdialog as well (Company logo), and some radiobuttons to select different values / options.

Is this possible? I have tried to use two button dialog (I don't think it is possible with graphic here?), and case structure that cals the next vi (the next userdialog).
But I get the following error: "You cannot use "Bruker_velkommen.vi" recursively".

Any advice? Or can anybody point me in the direction of some good links?

Regards Vidar
0 Kudos
Message 1 of 3
(2,588 Views)

Hello,

You may want to avoid using recursion.  It can be done by calling the VI dynamically, but this particular problem can be solved without recursion.  I would create a high-level VI that is not a dialog in itself - instead it is a state-machine that manages navigating between the different dialogs.  In addition, this top-level VI can store the current selections made by the user in shift registers.  Each dialog would be executed in one of the states of this top-level VI.

If you want images, and radio buttons, you'll probably want to create your own dialog VI.  Based on inputs that you send it, you could have it display the appropriate pictures, provide the appropriate options, etc.

I'm not sure where you'd find a good example.  I personally would typically implement this kind of heavily user-interface-driven application in C# or C++, but if LabVIEW if your bag then good luck.

Rob

0 Kudos
Message 2 of 3
(2,585 Views)

Just a couple of notes on what Rob said:

You can set your main VI to be transparent, that way the user never sees anything but the dialog VIs.

You can set the various dialog VIs to be modal, and alter their practical appearance (scrollbars, size, file menus, etc) in the File->VI Properties menu.  You can also set background images and create custom controls if you want to change the physical appearance.

 

I do agree the state machine is the best way to do it.

0 Kudos
Message 3 of 3
(2,566 Views)