LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dialogue appears at latest vi called

Solved!
Go to solution

Hi,

 

I've just come across an odd (or desired - just not by me) behavior.

I have a main vi calling a subvi. That subvi is set to display its FP when called. Inside the main vi is another subvi which displays a standard dialogue. When that dialogue appears it is positioned above the subvi FP although they've got nothing to do with each other, except that the subvi is most recently displayed FP before the dialogue.

 

I have assembled a quick example showing the behavior. To view it please download the two vis into the same folder and run FlyOutTEST.vi (LV2011).

 

In my actual main vi I would like to keep things the way they are mostly - i.e. call my subvi with FP before the dialogue, and display the subvi FP at its most recent position so that the user can arrange windows as he likes.

Is there a way to display the standard dialogue centered in front of the main vi FP?

 

Regards Florian

Download All
0 Kudos
Message 1 of 3
(2,679 Views)
Solution
Accepted by topic author Florian.Ludwig

Hi,

 

There is no handle to this dialog to position it. It pops up in the center of the currently active Front panel.

 

The only way to avoid this, ist to build a dialog yourself.

create a new vi and design the front panel to be your dialog. Got to VI-Properties and macht the front panel pop up when called, and close when done executing. Set all tool bars to be not shown, so the artificial dialog  looks like a standard dialog. now you can determine and set its position on the screen as you wish.

Message 2 of 3
(2,644 Views)

Thanks for the info.

 

Building my own dialogues was the only solution I could think of too. I had hoped for a check box I missed so I could fix this with just a few clicks. 🙂

 

Regards Florian

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