LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change vi panel bounds only after another vi is resized

Solved!
Go to solution
I have VI B inside of a subpanel (auto resize with pane) on VI A. I am programmatically trying to resize VI B when VI A is resized so I can see all of VI B inside the subpanel. It works fine except VI B is being resized WHILE I'm resizing VI A. This is the expected behaviour but it creates a lot of flickering. I want to only resize VI B after VI A has resized. Similar to the property "Scale objects while resizing" of a pane. Is there a workaround for this? I was hoping there would be a resize event for the subpanel but it doesn't exist.
0 Kudos
Message 1 of 3
(2,768 Views)
Solution
Accepted by topic author abdel2

You can register for the Panel Resize event of VI A, if the old and new panel bounds are equal then the resizing has finished.

 

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!
Message 2 of 3
(2,749 Views)

Nice trick. Worked great. Thanks!

 

 

However now it looks like I don't need to do any resizing manually. When I load VI B into a subpanel on VI A, it automatically resizes to the size of the subpanel.

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