LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UI formatting issue

We have been having an issue with a VI that we use for calibration of our test racks. The original VI was wrote in 8.6, and then updated when we converted our machines to Windows 7/LabVIEW 2010. Everything was ok during the first calibration. But on the second, which was 6 months later, we started having formatting issues. I was able to correct this 6 months ago using LabVIEW 2013 (Original Code SS.png).

 

Last week when the techs went to start running cal again, the formatting issue was back.  We have tried loading and modifying the source code, and building the .exe on multiple machines, with no success (Attempt2, 3, 4.png).We have even tried changing from the system to both modern and silver, in the small hope that that would do it. We also have tried adjusting the screen resolution on the monitors to match before building the .exe. 

 

We are at a loss at this point. We are hoping that it is a simple setting within labVIEW that is causing it, or a Windows setting that can be corrected.

 

Thanks for your time.

 

Original Code SS.png

Attempt3.pngAttempt2.png

Attempt4.png

 

0 Kudos
Message 1 of 7
(3,107 Views)

Sounds like you have different settings in Windows amongst your computers.  Try adding this to your application's ini file:

appFont="Segoe UI" 13


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,093 Views)

that can go right at the end of the ini file correct?

0 Kudos
Message 3 of 7
(3,082 Views)

@Jared.Sweeney wrote:

that can go right at the end of the ini file correct?


yep


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(3,076 Views)

So I added appFont="Segoe UI" 13 to the end of the ini file, and now when I bring the exe up on my machine, it looks the same as it does on every other machine .. similar to the pictures in my first post.

 

If I remove the line, and start the exe, it looks good on my machine .. but still out of alignment everywhere else.

0 Kudos
Message 5 of 7
(3,063 Views)

What version of Windows is installed in your machine?

 

What font settings do you have in Windows for your theme?

 

Do you have any font settings in the LabVIEW.ini file on your machine?

 

One of these is determining what looks correct on your machine.  It is just a matter of determining which is the final setting being applied, then placing that settting in the LabVIEW.ini or application.ini (in the event you built the file into an .exe) on the other machines.

 

I would try Tahoma 12.

 

Also, it might be systemFont or dialogFont you need to apply as well.

 

See ttp://labviewwiki.org/LabVIEW_configuration_file/Fonts

0 Kudos
Message 6 of 7
(3,029 Views)

We have the same issue and it's because the Windows Desktop Scaling is set by our IT department to 125% which makes everything look bigger in LabVIEW without the INI keys set for the LabVIEW development environment and also in executables we produce.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 7 of 7
(3,001 Views)