07-18-2023 02:31 PM
How do I truly maximize a labVIEW window?
I am attempting to maximize the front panel of a VI when called, but there is a 2 pixel border between the edge of the window and the edges of the screen. (Actor UI event helper loop with init invoke node FP.Open maximize)
Front panel does not extend to the edge of the screen. Also 2 pixels above task bar (not pictured here). Windows do sit at the top of the screen
This happens on all labVIEW windows (even the block diagrams).
What is going on? How do I truly maximize a window?
LabVIEW 20.0.1f1 (64bit)
Windows 10 22H2
Solved! Go to Solution.
07-18-2023 03:50 PM
That's the neat part... you don't!
😞
07-18-2023 06:01 PM
@BertMcMahan wrote:
That's the neat part... you don't!
😞
Thank you, I thought I was loosing my mind.
Is this a windows 10 only bug? My deployment machine is still running windows 7.
I understand that I may be a bit anal, but maximize should maximize.
07-18-2023 07:02 PM
This is not a LabVIEW bug.
See my post to:
07-18-2023 07:59 PM
@zou wrote:
This is not a LabVIEW bug.
See my post to:
Single pixel (1px) border missing on LabVIEW windows in Windows 10
Oh, interesting. I didn't make it to the end of that thread.
Where can I find resources on calling this api (64-bit) through labVIEW? I want to try this out.
07-18-2023 08:54 PM
Here's an attempt at a VI snippet to remove the WS_EX_CLIENTEDGE window style from whatever Window Title you enter in the string to the left. (my first time posting a snippet so I hope it works)
Unfortunately this only partially resolves the problem for me, as it seems to correct the "1px" border in the mentioned thread, but doesn't remove the several (8 perhaps?) border that also exists around my maximized VI. Still hunting for a full solution
07-18-2023 10:41 PM
Could you share as a VI? Or downgrade the snippet?
I am currently running labVIEW 2020 and am struggling to set up the calls to user32.dll
Many thanks
07-19-2023 08:47 AM
If you are not familiar with Windows API, download this:
It's a good starting point.
You can find document here:
https://learn.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles
07-19-2023 09:44 AM
@iannicholson wrote:
Here's an attempt at a VI snippet to remove the WS_EX_CLIENTEDGE window style from whatever Window Title you enter in the string to the left. (my first time posting a snippet so I hope it works)
Unfortunately this only partially resolves the problem for me, as it seems to correct the "1px" border in the mentioned thread, but doesn't remove the several (8 perhaps?) border that also exists around my maximized VI. Still hunting for a full solution
Your VI looks like a good one.
Could you show us a picture what part of the border still has problem? And what is your VI properties setting?
07-19-2023 09:56 AM
@ianzur wrote:
Could you share as a VI? Or downgrade the snippet?
I am currently running labVIEW 2020 and am struggling to set up the calls to user32.dll
Many thanks
Here's a VI saved all the way back to LV 8.6.