LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

same object size (front panel) with different screen resolution

Hi everybody,

 

I realised an application, and I try to instal it on various computer. The probleme is that they haven't the same screen resolution, so the front panel is not the same on each computer. It is possible to build an application which have the same front panel with different screen resolution ?

 

Kriss.

0 Kudos
Message 1 of 8
(3,782 Views)

Hi Krisss,

 

switch off any "adapt to screen resolution" switches in the VI properties...

 

You should also define "same front panel" and "same object size"! Do you mean the same pixel size or size in mm or size in percent of screen?

Best regards,
GerdW


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

The best is to have the same size in percent of screen. That's way, all front panels are similar on each computer .Because currently I must resize the front panel for each computer...

 

Best regards,

Krisss.

0 Kudos
Message 3 of 8
(3,760 Views)

And thank's for your quick answer GerdW.

 

Krisss.

0 Kudos
Message 4 of 8
(3,758 Views)

Hi Krisss,

 

so you want the opposite of my first suggestion:

Switch on the scaling option in the VI properties.

 

But be warned of strange font (or other) scaling problems...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(3,752 Views)
I tried it with Labview 8.6 but it doesn't work correctly. I try it with labview 2009, perhaps it's better. I will tell you the result tomorrow.
0 Kudos
Message 6 of 8
(3,740 Views)

Hi GerdW,

 

It doesn't work correctly with Labview 2009 too. With this method the front panel (and the objects) are distort. So I think the best means to resolve this problem is to create one front panel per screen résolution that we use.

 

Thanks for your help GerdW.

Best regards,

Kriss

0 Kudos
Message 7 of 8
(3,723 Views)
If you really need this to work, you can do the rescaling yourself.  Use the Panel Resize event on the VI to signal that you need to resize your objects.  Use VI server properties to resize things.  You can find an example of resizing things and more tips here.  Let us know if you need more help.
0 Kudos
Message 8 of 8
(3,704 Views)