LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Closed vi's panel/window bounds

Solved!
Go to solution
I need to get a vi's panel and or window bounds but Im unable to do this without opening the vi. At the moment Im opening the VI for an instant before closing it again to insert into a subpanel (resizing the subpanel using the panel bounds of the VI). My question is, is there a way to work around this behavior? I read the documentation and NI suggests that I use the 'state/hidden' property to get the panel bounds -but I get an error when trying to do this, as the VI needs to be open to set this property -hence another open and close situation.
0 Kudos
Message 1 of 3
(2,186 Views)
Solution
Accepted by topic author WireJunky

If you use the Open Method, you can directly set it's state to hidden.

With the state property you can (after resizing) change the state to standard.

 

Ton

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 3
(2,180 Views)
Thanks that did the trick... been struggling with this for a while now glad there is a way to do itSmiley Very Happy
0 Kudos
Message 3 of 3
(2,174 Views)