LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug: Resize Array with Pane doesn't work

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 ?

 

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 1 of 4
(1,351 Views)

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.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 4
(1,314 Views)

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:

  1. Create a new VI and add an array of any type to the FP and select "Scale Object with Pane".
  2. Resize the FP and watch the array resize and change its number of rows correctly.
  3. Right-click on a scrollbar and select Pane Sizing>Scale Objects While Resizing.

At this point, some strange things can happen:

  • The array will now not change its number of rows. Or, sometimes it will, one or a few rows. 
  • If I enlarge the FP and then shrink it, LV won't let me shrink the VI much in one go, but if I release and drag to shrink again, it can shrink it a little more.
  • If I shrink the FP to make it smaller in height than the array and then increase the height of the FP so it is higher than the array, I can get the number of rows on the array to increase a few rows.
  • If I drag the height of the FP without releasing, making the height smaller and larger, the array will soon be drawn incorrectly. This happens when the VI is running too.
  • If I make the FP height very large and the array show many rows, and then resize, I do see some changes on the number of rows both if I make the FP larger or smaller. But the change in number of rows shown is incorrect and gets more off the more I resize.

The attached video shows some of these issues.

 

I'm guessing a rounding error is a part of the issue.

Certified LabVIEW Architect
Message 3 of 4
(1,231 Views)

I took the liberty of posting a link to this thread in the annual bug thread.

Certified LabVIEW Architect
Message 4 of 4
(1,227 Views)