11-13-2020 01:18 PM
Hi all,
I'm having the following issue with LabVIEW 2018, and am wondering if others are having it / if it's been fixed in future versions:
I configure my main GUI VI to run Maximized on the primary screen. For some reason, in both development and runtime, there's a big gap around the sides and bottom of the window (about 12 pixels). See attached screenshot for example. The only possible workaround is to make the window resizable and try and set it the window size automatically by fetching the screen size from windows and so forth - not my favorite idea especially since stuff moving around as the window scales usually doesn't go well.
Anybody have some insight? Thanks in advance,
Michael
Solved! Go to Solution.
11-14-2020 09:24 PM
Sounds suspiciously like a variant of this issue.
11-15-2020 10:24 AM
I agree, except this is far more annoying, because you can see a good deal of the window(s) behind and I’ll even miss the “x” button and open the window behind by accident sometimes, because it’s not in the corner where it should be.
It just makes the application look unpolished and I know my client will be unhappy.
11-15-2020 08:25 PM
I totally agree! I wish I had a solution. 😞
11-16-2020 04:18 PM
Hi Michael, can you attach the VI with everything stripped out, but still exhibiting this issue?
11-16-2020 05:00 PM
Hi Gregory,
Thank you, this was a good test exercise. While the problem isn't solved, I did discover the following:
So my options are to turn resize on or just deal with the border it seems. I've had resize off because the objects in panes never return to their original spot when you manually resize windows.
Attached are the test VIs
11-16-2020 05:34 PM
@michael.lambert wrote:
Hi Gregory,
Thank you, this was a good test exercise. While the problem isn't solved, I did discover the following:
- If the window appearance settings "Allow user to resize window" is FALSE, a 12 pixel gap appears around the sides and bottom of the VI window
- If "Allow user to resize window" is TRUE, a 1 or 2 pixel gap appears instead of 12
So my options are to turn resize on or just deal with the border it seems. I've had resize off because the objects in panes never return to their original spot when you manually resize windows.
Attached are the test VIs
OMG. That's all I have to say about it. 😞
11-16-2020 05:53 PM
11-17-2020 02:22 PM
I was able to reproduce in LV 2020 as well. I was able to make it look pretty "normal" by trimming 10 pixels off of the left, right, and bottom borders as below. Still not very nice that you have to manipulate the window to simply show it maximized, and I'm not sure how this works with multiple monitors.
11-17-2020 03:46 PM
I saw that solution once before, I think. The only downside to it, is that the minimize/maximize button will indicate that the window isn't maximized if you programmatically change the bounds. If the user clicks it to maximize, then you're back at square one.
Sooooo, my workaround for the time being is make it non-resizable and move the left, bottom, and right bounds as you've done here.
Thanks for your time and thoughts Gregory