LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel Objects Moving When Changing Monitors

Solved!
Go to solution

Hello,

 

My front panel layout changes and shifts everytime I drag and drop the front panel to my second monitor. I have tried every single solution given by NI @ Front Panel Objects Moving When LabVIEW VI is Run on Another Computer - NI

Please help.

 

OS: Win10

LV: 2022 Q3 CE

 

Cheers,

Diural

 

 

0 Kudos
Message 1 of 6
(1,600 Views)

Hi Diural,

 


@Diural wrote:

I have tried every single solution given by NI @ Front Panel Objects Moving When LabVIEW VI is Run on Another Computer - NI


Did you also notice this sentence in the KB entry?

Some PCs may have the display set to enlarge text and other items. In Windows this can be found at Control Panel >> Display. Make sure the development PC and deployment PC are set the same.

 

Did you set the same scaling for both monitors?

What is the pixel size of both monitors?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(1,578 Views)

Hello Gerd,

 

Thank you for your answer and acctually the solution to my present problem, so kudos for that 🙂

(UPDATE: With Gerd's solution the right and left shifting is gone but up and down still happens) ... 😞

 

That made me think because I have another worry because I am developing a front panel for another company:

1) I cannot dictate which options people using my front panel should use while running it.

2) I will be held responsible if something like this happens.

 

Is there a way to "lock" the objects places so that even if it enlarges they do not shift? I have already trid giving set positions to each and every object but that did not work unfortunetaly.

 

Cheers,

Diural

0 Kudos
Message 3 of 6
(1,570 Views)

"Is there a way to "lock" the objects places so that even if it enlarges they do not shift? I have already trid giving set positions to each and every object but that did not work unfortunetaly."

 

Usually, we recommend using Splitter Bars. You can configure a splitter's behavior when the user resizes the window.

-------------------------------------------------------
Applications Engineer | TME Systems
0 Kudos
Message 4 of 6
(1,555 Views)

Hi Diural,

 


@Diural wrote:

Is there a way to "lock" the objects places so that even if it enlarges they do not shift? I have already trid giving set positions to each and every object but that did not work unfortunetaly.


One more idea: choose a "real" font for all labels/captions instead of using "generic" items like "Application Font". Or define them for your executable by setting keys in the executable.ini

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 6
(1,551 Views)
Solution
Accepted by Diural

Hey everyone,

 

Thank you all for amswering my question, I have found a very easy solution that works on my "when dragging the front panel to my second monitor (different size) all the layout changes and objects shifts" ! I will give you the steps:

 

1) Like GerdW said go to Settings->System->Display and check that both of your monitors have the same resolution and size values.

2) This step can be skipped but to be safe I recommend doing it: Change all labels and title to the Arial font and give all your objects set positions.

3) On your Front Panel click Control+A to select all and then click the "Reorder" button and finally select "lock" to lock every object on the front panel to their initial potisions.

 

That worked for me and I hope this will help some people using dual monitors.

If you need more info please check NIs posts about these issues:

1) Front Panel Objects Moving When LabVIEW VI is Run on Another Computer - NI

2) Locking An Individual Front Panel Object in LabVIEW - NI

 

Cheers,

Diural

0 Kudos
Message 6 of 6
(1,499 Views)