LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Minimizing the application (all open windows)

Solved!
Go to solution

Hi,

 

I have an application that has more windows (W1, W2, ..., Wn) where W1 calls W2, W2 calls W3 and so on (when Wn is open Wn-1 can not be accessed). I want to minimize all windows when user minimizes Wn. How can I do this? I could use references to all previous windows and minimize them using invoke node, but I don't like this method. Is there any other way to do this? Maybe on the application level?

 

Thanks! 

0 Kudos
Message 1 of 7
(4,787 Views)

If you are using MS Windows, you can use Windows API to do this.

Just find the "labview" window, and minimize it.  All LabVIEW windows will be minimized.

 

George Zou
0 Kudos
Message 2 of 7
(4,774 Views)

How can I find "labview" window or all labview windows. I have tried minimizing using the VI name, but it minimizes only the top window, other labview windows are not minimized.

0 Kudos
Message 3 of 7
(4,755 Views)
Solution
Accepted by topic author andrej

Hi

 

I have an app that has more than one front panel open at the same time, it does create some issues somtimes, for instance when you "alt-tab" through the open windows in Windows.

To minimize all my Vi's front panel at the same time, there is a button on the main VI, when the user hits it I use this VI (attached) to minimize all the opened FP.

 

I'm sorry it's not documented, but basically you have to place it in the main VI of your app and pass in the ref of the main VI, when run, it take take the ref of all the VIs in memory that have their front panel open, minized all of them and old their ref in  the array that's in a shift register and then it wait for the main VI to be opened by the user and then re-displays all other FP that were opened.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 7
(4,751 Views)

Thank you. Actually I did similar VI, but I was hoping that there is some other solution where I don't need to pass a parent VI reference to a subVI.

0 Kudos
Message 5 of 7
(4,747 Views)

What's wrong with doing it per VI?

Min_Wins.png

0 Kudos
Message 6 of 7
(4,734 Views)

Well I don't know how Andrej's application is architectured but is he has independant processes that have different FP and if he want to minimizse all the app's FP when one of them is minimized he can't use your VI.

Maybe your VI would be fine... I just posted the VI I'm using for my project in case it can help Smiley Wink


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 7 of 7
(4,726 Views)