10-16-2024 08:40 AM
Hi,
I have an executable buit il LabVIEW 2017 running on a Win10 PC.
The apparence of the main VI is as ttached picture
And the windows runtime posizion is Maximized
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...
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...
10-16-2024 09:27 AM
make front panel resizable.
10-17-2024 01:10 AM
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... 😞
10-17-2024 09:21 AM
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).
10-17-2024 09:32 AM - edited 10-17-2024 09:49 AM
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. 😞
10-18-2024 01:25 PM - edited 10-18-2024 01:32 PM
> 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
10-21-2024 02:00 AM
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.
10-21-2024 09:29 AM
Have you tried my VI? It works on Windows 10 Pro. 64bit.
Windows API will fix the 10 pixels gap.
10-21-2024 09:51 AM
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
10-21-2024 10:55 AM
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.