LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panel Resize event pile-up

Solved!
Go to solution

I have an application with a few panes and a subpanel in one of the panes that is set to fit to pane. When resizing the window the fitting of the subpanel is not quite smooth. I created a test VI and got the same results. The event fires pretty much on every pixel resize, but when I resize quickly, it actually seems to choke. After I slow down or stop resizing I get a whole slew of resize events at once! Now I know that, I have found a way to deal with that using the "flush event queue" function, but that doesn't solve the rather clunky panel refitting.

 

A control statically set to fit to pane will only do that after releasing the mouse. To get smooth refitting I use the "FitControlToPane" method. Still, it is cluncky.

 

0 Kudos
Message 1 of 7
(4,390 Views)
Save you example for LV16 (or earlier). Not all of us have last version.
0 Kudos
Message 2 of 7
(4,374 Views)

Forgot to mention: my example is in LV2018

0 Kudos
Message 3 of 7
(4,363 Views)

Labview 2013 version attached

0 Kudos
Message 4 of 7
(4,357 Views)
Solution
Accepted by topic author aartjan

 Try scale while resizing without invoke node

scale.png

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

Here's what I usually do.

 

Compare the old and new coordinates. Only for the final rescale the old and new coordinates are the same.

 

So scale if the action is maximize or restore, and if not, only when the coordinates are the same.

Message 6 of 7
(4,338 Views)

All you probably need to do is go to the event configuration and (1) disable panel locking and (2) limiting the event queue size to 1.

 

See if it helps. (See also the links in this old idea)

 

ResizeLimit.png

Message 7 of 7
(4,297 Views)