06-04-2024 04:50 AM
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.
Solved! Go to Solution.
06-04-2024 05:02 AM
06-04-2024 05:11 AM
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.
06-04-2024 08:03 AM
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.
06-04-2024 11:14 AM
Hello Jim,
Thank you for replying. More information follows:
06-05-2024 11:35 AM
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.
06-06-2024 02:53 AM
@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.