LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime panel size is being set incorrectly when window parts are hidden

Environment:
Windows 8.1
LabVIEW 2018 SP1 f4

 

Steps to Reproduce:

  1. Create a new VI (or see attached);
  2. Configure VI properties to hide menu bar, toolbar and scroll bars at runtime;
  3. Go to VI Properties > Window Size and click Set to Current Panel Size button in Minimum Panel Size group;
  4. Go to VI Properties > Window Run-Time Position:
    1. Set Position to Centered;
    2. Uncheck Use Current Panel Size option and click Set to Current Panel Size button;
  5. Click OK button to apply changes;
  6. Enlarge FP window a bit in any direction;
  7. Run the VI.

Expected Result:

Panel size equals to values set in VI Properties > Window Run-Time Position (or Minimum Panel Size, as they are equal).

Window shrinks to panel size.

 

Actual Result:

Panel size equals to Minimum Panel Size + size of hidden items (even though they are hidden):

image.png

The window can be shrunk to expected size manually at runtime.

 

Workarounds:

  • Set Minimum Panel Size = runtime panel size - size of hidden items (-17 for Width, -63 for Height) or less;
  • Check Use Current Panel Size option at VI Properties > Window Run-Time Position.

 

This problem was already discussed a few times before without people from NI involved.

According to the first thread, the problem first appeared in LabVIEW 2012 or 2013.

 

Reported to NI with SR #7808731.

0 Kudos
Message 1 of 3
(2,728 Views)

Environment:
Windows 8.1
LabVIEW 2018 SP1 f4

 

Steps to Reproduce:

  1. Create a new VI;
  2. Configure VI properties to hide menu bar, toolbar and scroll bars at runtime;
  3. Configure window runtime position to be Centered, uncheck Use Current Panel Size option and click Set to Current Panel Size button;
  4. Increase value in a Width field by 17 to account for hidden scroll bar;
  5. Increase value in a Height field by 63 (menu bar + toolbar + scroll bar);
  6. Click OK button to apply changes and run the VI.

Expected Result:

Total window size stays the same between edit-time and runtime. Panel expands to window size and covers hidden items.

 

Actual Result:

Both window and panel size stay the same between edit-time and runtime.

If the VI is configured to allow resizing (see TestWindowSameSize1.vi), hidden items appear drawn in a window, but they're not functioning:

image.png

If the VI is configured to restrict resizing (see TestWindowSameSize2.vi), hidden items are hidden properly, but there is a white space in place of them:

image.png

 

Workaround:

Enlarge FP window a bit in any direction, so that edit-time window size != runtime window size.

 

This problem also appears when Window Size > Minimum Panel Size = edit-time panel size = Window Run-Time Position > Panel Size, but it's caused by another issue.

 

Both of these problems were discussed a few times before without people from NI involved.

 

Reported to NI with SR #7808736.

Download All
Message 2 of 3
(2,727 Views)

Would be really nice if someone from NI could comment. I have the same issue and it sucks badly.

0 Kudos
Message 3 of 3
(1,529 Views)