01-09-2023 06:32 AM - edited 01-09-2023 06:35 AM
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
Solved! Go to Solution.
01-09-2023 07:45 AM
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?
01-09-2023 08:04 AM - edited 01-09-2023 08:07 AM
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
01-09-2023 08:37 AM
"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.
01-09-2023 08:43 AM
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…
01-10-2023 12:50 AM
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