LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set State of Project window - minimise maximise

Solved!
Go to solution

Hi,

 

Does anybody have any idea how to set the state of the project window (and also vi block diagrams) using scripting.  I want to be able to ensure that only one window is at a decent size at any time - since otherwise labview tends to block everything behind it when you tab to another application.

 

Seems like the project window state is read only, and the methods 'close window' and 'close' actually unload the whole project.

 

JP

0 Kudos
Message 1 of 4
(2,377 Views)

Hello,

 

I have had a little look at this and from my first investigation it appears that yes this is only a read-only attribute.

 

I will continue to have a look and see if I can come up with a workaround however.

Nick
0 Kudos
Message 2 of 4
(2,349 Views)
Solution
Accepted by topic author wideofthemark

Since you can't do it using LabVIEW methods, one workaround that I can think of is to use the OS. For example, on Windows you can use the Windows API. The Windows API Functions for LabVIEW could be used for this.

Message 3 of 4
(2,344 Views)

Thanks,

 

That seems right.  It took a little messing around to make sure that i got the right window name for the project explorer - but now it works well.

0 Kudos
Message 4 of 4
(2,329 Views)