02-04-2020 07:50 AM
Hello everyone,
I developed an application on a computer with a 13.5” x 8” screen. The final product is going to be used on a 15” x 12” computer.
I set the Windows size to “Maintain proportions for different monitor resolutions” and “Scale all objects as window resizes”. Despite that when run on the 13.5” x 8” screen part of the front panel simply gets cut off.
Is there a way to fix this?
Thank you in advance for your advice.
02-04-2020 08:35 AM
Hi Broni,
@Broni wrote:
I developed an application on a computer with a 13.5” x 8” screen. The final product is going to be used on a 15” x 12” computer.
Giving the size of your screens in inches is nonsense: the interesting part is the pixel resolution!
General advice:
02-04-2020 08:52 AM
Dealing with different monitor resolutions is always tricky, and automatic resizing rarely produces the results you want. My general approach is to design 3 or 4 front panels for different resolutions and load the one closest to the monitor resolution without going over. You can use an application reference to get the current monitor resolution, and load the one you want using VI server functions (open reference and Invoke nodes).
Have a look at the NI Front Panel Layout toolkit for saving front panel configurations... https://forums.ni.com/t5/Reference-Design-Content/Front-Panel-Layout-Tool/ta-p/3497370
Alternatively, a more simplistic option is to design your FP for the target machine resolution and don't let anyone change it. Not really a solution, but probably far simpler than anything else.
02-04-2020 08:54 AM
As GerdW said, screen resolution (in pixels) is the important statistic, not the physical dimensions.
Also, you might want to check that you have set your "Minimum Panel Size" (in pixels) to an appropriate size. IE, the smallest size you want to support. Again, as GerdW suggests, design your FP for the smallest size you want to support.
02-04-2020 09:33 AM
Thank you for all your advice!
I will try it and hopefully it works.
Thanks again to all who replied.
02-04-2020 11:36 AM
02-05-2020 07:01 AM