09-17-2021 11:15 AM
LV2018 SP1 Win 10
1... Create an ARRAY of numeric controls on new front panel.
2... Stretch array to 4-5 vertical elements. Show Vertical Scrollbar. Choose FIT CONTROL TO PANE.
3... Add splitter to right of array
4... Pop up on splitter and choose LEFT PANE -- PANE SIZING - SCALE ALL OBJECTS WITH PANE
5... Ctrl-M to test UI. Change the window size. Notice that the NUMROWS adjusts after you change the size. Fine.
6... Ctrl-M to exit UI test mode. Pop up on splitter and choose LEFT PANE - PANE SIZING - SCALE OBJECTS WHILE RESIZING.
7... Ctrl-M to test UI. Change the window size. Notice that IT DOES NOT CARE. The array remains unchanged.
8... Ctrl-M to exit UI test mode. Pop up on splitter and choose LEFT PANE - PANE SIZING - SCALE OBJECTS WHILE RESIZING. (un-check it).
9... Ctrl-M to test UI. Change the window size. Notice that the NUMROWS adjusts after you change the size. Fine.
IOW, the SCALE OBJECTS WHILE RESIZING doesn't work.
Works differently, but not correctly on LV2021, Mac OS.
On MacOS, LV2021 just screws it up big time. It sometimes will resize the array, sometimes not. It never hits the right size.
Am I missing something ?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-17-2021 01:39 PM
Also, even when it works with the CTRL-M test, it doesn't work when the VI in question is inserted into a SubPanel, and the Subpanel is resized because its window is resized.
Other things, like a String indicator or graph work fine in that scenario, but ARRAY does not.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-22-2021 02:19 AM
I have tested in LV2020 SP1 and LV2021 32 bit on Windows 10 and can confirm that Scale Objects While Resizing does not work for arrays, and that it can induce some weird bugs. You don't need to create a splitter or anything, you don't need CTRL+M, and you don't need to do Fit Control to Pane. Just:
At this point, some strange things can happen:
The attached video shows some of these issues.
I'm guessing a rounding error is a part of the issue.
09-22-2021 02:24 AM
I took the liberty of posting a link to this thread in the annual bug thread.