LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Window changes size after running - Bug?

I have been having an issue (a mildly infuriating one) where my window size changes after running. See images

 

SizeBefore.PNGSizeDuring.PNGSizeAfter.PNG

 

 

The window expands by the size of the scroll bars in the x and y axis. It only happens sporadically - I can't figure out a way to predict when it will happen or not.  I'll just be running/stopping the program and then bam! different front panel size.  I've also had it happen on multiple different machines with multiple different programs.  There was no code in any of the programs that resized the FP window.  I know I can force the runtime size with VI properties, but...

 

 

0 Kudos
Message 1 of 12
(3,649 Views)

Which LabVIEW version are you using?

0 Kudos
Message 2 of 12
(3,639 Views)

I've seen this before but not lately so it may be related to OS/LV version. What are the Window appearance and window size settings? It look like it is set to Dialog, Scrollbar setting? Does the same thing happen when you set the front panel to run mode (Ctrl+m)?

 

Ben64

0 Kudos
Message 3 of 12
(3,621 Views)

@ben64 wrote:

I've seen this before but not lately so it may be related to OS/LV version. What are the Window appearance and window size settings? It look like it is set to Dialog, Scrollbar setting? Does the same thing happen when you set the front panel to run mode (Ctrl+m)?

 

Ben64


The version is LV2014 run on Win 7.

 

I haven't seen it happen from going in/out of runtime mode.  Window appearance settings are custom, but nothing fancy.  Just hiding options I don't want the users to do.

 Settings.PNG

 

 

0 Kudos
Message 4 of 12
(3,610 Views)

I wasn't able to reproduce it (LV2014, Win 7). Since it happen sporadically I would say it's a bug.

 

Ben64 

0 Kudos
Message 5 of 12
(3,584 Views)

I gutted the linked vi (with notes on what was changed) and attached it if you want to try and reproduce it.  After some more playing around with it, I realized it is any time I first open the VI and run it.  It seemed random because the VI was part of a project and I was frequenly opening / closing / running etc.

0 Kudos
Message 6 of 12
(3,568 Views)

Definitely related to the Run when opened execution mode.

 

EDIT: To avoid this set the scrollbars mode to always ON. They won't show up when you run the vi because of the window appearance settings and you will not have the extra offset when you stop the vi.

 

Ben64

0 Kudos
Message 7 of 12
(3,563 Views)

@ben64 wrote:

Definitely related to the Run when opened execution mode.

 

Ben64


 

It is related to that. I tried making another  very simple VI to reproduce the bug (same window / execute / position settings), but was unable to do so.  I did notice that it resizes the window when bars are set to "Always Off" and "Off While Running" - but not with "Always On".

0 Kudos
Message 8 of 12
(3,554 Views)

I added the following code in the initialization sequence and was able to do a few run without seeing the offset systematically.

 

init.png

Message 9 of 12
(3,545 Views)

Bah.  More workarounds for bugs... 

 

I ended up just fixing it with the "Window Run-Time Position" setting.

0 Kudos
Message 10 of 12
(3,532 Views)