01-07-2016 02:02 PM
When I created my executable application on Windows 7, all the controls were at the correct positions. But when I ran my executable on Windows XP, some controls' position changed. All four controls are aligned to bottom when I created them.
See attached screenshots.
Any suggestions?
Solved! Go to Solution.
01-07-2016 02:11 PM
Are you using system fonts for everything? (Select everything and press ctrl+2 to change to system fonts)
01-07-2016 02:13 PM
Your problem is the changing of the application fonts. I recommend giving this help document a good read: Porting VIs among Platforms
01-07-2016 02:43 PM
As the others have pointed out, the fonts change between systems. What works for me is the following:
I've added these lines to every "C:\Program Files (x86)\National Instruments\LabVIEW xxx\LabVIEW.ini" file on my system (v7.1.1 thru 2015)
appFont="Tahoma" 13
dialogFont="Tahoma" 13
systemFont="Tahoma" 13
FPFont="Tahoma" 13
BDFont="Tahoma" 13
I include the execution of the attached VI as a "post build action" as part of the EXE build process.
If you ever use browser-based (IE, Firefox, Chrome) remote front panels then you may also find that you need to set the default font in the browser to match.
In Windows 7 at least, the other setting that can affect the appearance of the GUI is found on the Windows Display control panel. Any setting other than the Smaller/100% setting (usually 96dpi) can cause some text values to overfill their text boxes.