12-21-2018 04:07 AM
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.
Solved! Go to Solution.
12-21-2018 04:39 AM
12-21-2018 05:02 AM
Forgot to mention: my example is in LV2018
12-21-2018 05:25 AM
Labview 2013 version attached
12-21-2018 05:42 AM
Try scale while resizing without invoke node
12-21-2018 06:29 AM
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.
12-22-2018 10:45 AM - edited 12-22-2018 10:48 AM
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)