LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Minimize windows and maximize in run-time

Solved!
Go to solution

Hello, I was trying to make a program that opens somes VIs, the problem is that when they open in my laptop it appears cutted (image 1). I think this is because I have the position maximized and window has 125% scale. It was solved by putting the position centered (image2), but I don't know if it can have problems in the future.

 

I also want to have the windows bar with just minimize, but when I select Allow user to minimize window it doesn't appear nothing (image2). I need to activate also "allow user to resize window" (image3). How can be solved?

Download All
0 Kudos
Message 1 of 8
(185 Views)

Your question is not clear, especially your claim that the "position" is maximized. A maximized window has the position at [0,0] and fills the screen.

 

The "scale" typically applies to fonts. Have you read the warning in the windows 11 control panel? What are your actual settings?

 

What are the display settings of the VIs?

 

altenbach_0-1764174160696.png

 

0 Kudos
Message 2 of 8
(131 Views)

I don't have any warning in the Windows 11 control panel. By default, the scale is 125%. But if I connect a monitor, the scale of the monitor is 100% by default. My program will be used by different people in different PCs, so it's not an easy as changin scale to 100% (I did it to test and it fitted).

 

If I change the run time execution to centered, it fits even if I don't change the scale.

electronic_lab_0-1764179381078.png

 

0 Kudos
Message 3 of 8
(103 Views)

You get that warning if you click on the control panel entry instead of picking one of the pre-configured scalings (100%, 125%, 150%, etc.)

0 Kudos
Message 4 of 8
(92 Views)

But the problem is that the program is not executing right with 125%, that is usual laptop scale by default.

0 Kudos
Message 5 of 8
(64 Views)

Hi lab,

 


@electronic_lab wrote:

But the problem is that the program is not executing right with 125%, 


Then you need to change your program to work correctly.

That's part of your job as programmer…

 

Generic advice:

  • You should design the front panel to work on the recommended system/environment.
    When your users use laptops (with 125% scaling) most often, then you should design for such a target…
  • You might write specifications in the manual to your software and require 100% scaling "for optimal use".
    Then you could shift the problem to users of your software…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(54 Views)

Yes, I started this post because I want to find the solution to my problem. I don't want users to change scale to use this program.

 

Window Run-Time Position -> Centered is what is working to me.

 

Allow user to resize window, allow user to minimize window and Allow default run-time shorcut menus it what is working to have the minimize bar (image3). But it also appears resize, that is something I don't want. The problem is that if I quit resize It doesn't appear nothing

0 Kudos
Message 7 of 8
(52 Views)
Solution
Accepted by topic author electronic_lab

Hi lab,

 


@electronic_lab wrote:

But it also appears resize, that is something I don't want.

The problem is that if I quit resize It doesn't appear nothing


  • You can also set a minimal window (aka frontpanel) size, so your users cannot resize "too small"…
  • You could react on window size events and reset the window size, but this will give a bad UX…
  • You could allow resizing and fit the frontpanel content to the changed window size.
    LabVIEW supports that with splitter bars and several resizing options.
    (It's doable, but might result in a lot of work for you…)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 8
(47 Views)