LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[LabVIEW 2020 64-bit 20.0.1f1 - Windows 10 1511] Unable to resize Front Panel

Solved!
Go to solution

Hello,

 

I am unable to resize the front panel (FP) of my application, even if I set Minimum Panel Size to 0 x 0 and disable Maintain proportions... and Scale all objects... checkboxes. I also tried to delete all FP and BD objects, then trying again to resize the FP, but it still won't get resized. The FP protection is set to Unlocked (no password).

 

The strange thing is that if I try to programmatically shrink the FP window bounds, by writing the FP.WinBounds property, then LabVIEW yields an Error 1; however, setting the property with the current, or larger, window bounds doesn't trigger any LabVIEW error. I also tried the solution from this forum, but it won't work for me (and it is also little viable). I'm sorry, I cannot attach any VI nor post any code snippet. If needed and possible, I'll try to provide any further information.

 

I kindly look forward for any suggestion.

 

Thank you.

0 Kudos
Message 1 of 7
(701 Views)

Hi jac,

 

can you replicate the behaviour with a new (empty fresh) VI so we can play with this VI?

Otherwise it's a problem of your specific VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(693 Views)

Thank you for you quick feedback.

 

No, I cannot replicate the behaviour. I guess there must be some problem inherent with my specific VI. Furthermore, I tried from BD to execute Ctrl+A, Ctrl+C, Ctrl+N, Ctrl+E, Ctrl+V, and then resizing the FP; the problem surprisingly disappears in the new VI.

 

0 Kudos
Message 3 of 7
(683 Views)

Is it only in run mode that it cannot be resized, or also in edit mode?

 

What is the Window Appearance set to? The Dialog preset disables window resizing, and if it's set to custom then you'll need to go into the customization settings to see how it's configured.

0 Kudos
Message 4 of 7
(640 Views)

Hello Jim,

 

Thank you for replying. More information follows:

  • The FP cannot be resized in run neither edit mode.
  • Window Appearance set to Default.
  • Window Run-Time Position set to Unchanged.
  • Separate compiled code... in General tab is unchecked.

 

0 Kudos
Message 5 of 7
(614 Views)

Well that's strange. Normally even if window resizing is disabled that's only in run mode. Possibly something odd happened via a VI Server call or else maybe it is corrupted.

 

Was it at some point working normally? If you are using source code control you may want to try rolling back to an earlier version. Otherwise if this problem does not appear in new VIs then the best course may be to copy the contents into a new VI and overwrite the original.

0 Kudos
Message 6 of 7
(571 Views)
Solution
Accepted by topic author jac_d

@JimB.  ha scritto:

[...] Was it at some point working normally? If you are using source code control you may want to try rolling back to an earlier version. Otherwise if this problem does not appear in new VIs then the best course may be to copy the contents into a new VI and overwrite the original.


Allegedly, yes. In fact, I have found the reason why I couldn't resize the FP.

 

I cannot figure out why, but we seem to be given by National Instruments two ways to restraint FP size, a colleague of mine discovered. Aside from setting the Minimum Panel Size values from VI Properties » Windows Size, it is also possible to right-click on any of the two FP scrollbars and then clicking Properties; from here you can set the apparently overriding values for Minimum Panel Size. Once you set these ones to 0x0, everything works fine.

 

I thanked my collegue. However, thank you all for dedicating time to my problem.

Message 7 of 7
(546 Views)