LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MAximizing doesn't maximize

Hi,

   I have an executable buit il LabVIEW 2017 running on a Win10 PC.
The apparence of the main VI is as ttached picture

gepponline_0-1729085276913.png

 

And the windows runtime posizion is Maximized

gepponline_1-1729085331461.png

 

 

I expect the front panel to occupy the whole desktop area, but I get a window That miss almost 10px on every side. And it is a moveable window, so it is not maximized...

gepponline_2-1729085863866.png

 


What can it be due to?
Thank you.

P.S. If I Allow user to resize window, it take the whole sceen (except maybe a single pixel) but I don't want the user to resize the panel...

 

0 Kudos
Message 1 of 24
(688 Views)

make front panel resizable.

 

zou_0-1729088811100.png

 

George Zou
0 Kudos
Message 2 of 24
(656 Views)

As I wrote 

 If I Allow user to resize window, it take the whole sceen (except maybe a single pixel) but I don't want the user to resize the panel...


The user must be allowed only to minimize, not to move or resize the window.
I find it a strange behavior....If I don't show the window Title it get maximize, with the Title bar it seems to stay windowed.
But It was not always this way. I make the same things with soem old WInXP PC and the window is really maximized... 😞

0 Kudos
Message 3 of 24
(616 Views)

Ya. Window Run-Time Position was added in Windows 7 dates.  Old LabVIEW doesn't have these function.

 

If you don't want let user resize window, you can disable resize using Panel Property node (after a time delay so LabVIEW can maximize the front panel).

 

 

George Zou
0 Kudos
Message 4 of 24
(596 Views)

So you are suggesting to set to Allow resize in the Panel properties, but disabling "resizable" property programmatically in the block diagram?
But will the icon in the Title bar still remain there if I disable resizing programamtically?
I've just tried, but It seems it redraw the window when you change settings and it redraw leaving a few pixels on each size. 😞

0 Kudos
Message 5 of 24
(590 Views)

I've just tried, but It seems it redraw the window when you change settings and

> it redraw leaving a few pixels on each size.

 

You can resize the front panel using Windows API.

See attached VI.

 

Download the missing SubVIs from here:

https://forums.ni.com/t5/Example-Code/Windows-API-Function-Utilities-32-bit-for-LabVIEW/ta-p/3996462

 

George Zou
0 Kudos
Message 6 of 24
(541 Views)

No luck at all.

Even with Windows API the result is still the same.
If the front panel is set to ALLOW to minimize but DO NOT ALLOW to resize, it leave almost 10 pixels on every size.

 

0 Kudos
Message 7 of 24
(517 Views)

Have you tried my VI?  It works on Windows 10 Pro. 64bit.

Windows API will fix the 10 pixels gap.

 

 

George Zou
0 Kudos
Message 8 of 24
(506 Views)

No, I've only download the library.
I cannot test your VI 'cause I'm using LV2017 and it's saved for 2021.
Could you save for 2017? I'll give it a try 😉

thanks

0 Kudos
Message 9 of 24
(500 Views)

I can down convert the VI for you after work (in 10 hours).

Mean while, you can play it yourself since you already downloaded the library.

zou_0-1729526073493.png

 

George Zou
0 Kudos
Message 10 of 24
(480 Views)