LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Window sizing bug in LV2010?

Bug description:
If you build an application where you open a VI with its front panel hidden and then open it as centralized - then that VI will end up being scaled to the full width of your primary screen (i.e. not in its original shape) IF you happened to have the window of that VI partially on another screen when you built the application.

 

Background:

Windows 7, LabVIEW 2010:

In the VI options dialog you can specify the run-time position of the VI's window. There is one useful option missing: "Hidden", so if I need such a functionality (most often if I need a splash screen, but one that can be disabled...then I need to hide the caller which is the main VI) I use the trick of setting the window's run-time position to "Minimized" - and then run the Fron Panel Open Method with hidden as the mode input as soon as the VI launches...Unfortunately, when you select Minimized (or Maximized), or you hide it programmatically - you do not get to specify where the window should show up and which size it should have when the user then maximizes/minimizes it / you unhide it in code so you have to assume that it will keep its original size and/or programmatically position (and/or size) it when such an event occurs (which should then be a filter event...). I have so far only needed to ensure its position by doing a centralize, however lately I started to see that in a built app (not when running in the development environment) the centralized window got distorted - as it was stretched to the full length of the primary screen. This turned out to be caused by the fact that the last save of that VI has it positioned partially on my secondary screen....So it was easy enough to fix, but there really was no reason for such a particular behaviour...and of course a built app should behave just as the code does in the dev. environment...

I have not tested whether the window would have been strecthed in other ways had my secondary screen been in another position relative to my primary...(or even worse, if the VI was on 3 screens at the same time or more!)...but it would probably just get worse (a vertical strech would normally look worse than a vertical e.g.).

 

 

Message 1 of 1
(2,218 Views)