Discussion:
Keeping front panel objects aligned on target machine
(too old to reply)
RTSLVU
2008-08-06 16:10:07 UTC
Permalink
I have a simple little program that looks fine on my development station but looks like crap on the target machine.
 
Indicators that are aligned on the dev machine are not aligned on the target machine?
 
I don't get it, why does it look so bad on the target machine? Worst of all is everyone sees the target machine so it makes me look bad!
 
 Message Edited by RTSLVU on 08-06-2008 10:42 AM


Dev screen.jpg:
http://forums.ni.com/attachments/ni/170/347131/1/Dev screen.jpg


Target Screen.jpg:
http://forums.ni.com/attachments/ni/170/347131/2/Target Screen.jpg
Broken Arrow
2008-08-06 16:10:14 UTC
Permalink
Your Dev machine and Target Machine have Default Fonts (and/or System Font, Application Font, etc) set up differently, causing the indicators to line up differently. Make sure all of those are the same.
RTSLVU
2008-08-06 16:10:15 UTC
Permalink
OK so this is more a Windows issue than a LV issue.
 
Any idea where in Windows 2000 the default, application or system fonts are set?
Broken Arrow
2008-08-06 16:40:07 UTC
Permalink
No, not Windows, LabVIEW. - Delete the VI on target.
- On both machines, in LabVIEW, make sure all the fonts mentioned are the same type and size.
- Bring over the fresh VI from Dev machine onto target.
RTSLVU
2008-08-06 16:40:07 UTC
Permalink
I don't have LV installed on the target machine.
Only the LV runtime and the LV built EXE are installed.
Broken Arrow
2008-08-06 17:10:06 UTC
Permalink
AH! Then you have the well-documented issue where you need the font types/sizes in the Labview.ini file. Search for it. You need something like this in the ini.... appFont=""Tahoma" 12"where Tahoma is the font (recommended) and 12 is the size.
Broken Arrow
2008-08-06 17:10:08 UTC
Permalink
p.s. this is what I have on a 8.0 LV installation. appFont="Tahoma" 13 dialogFont="Tahoma" 13 systemFont="Tahoma" 13
RTSLVU
2008-08-06 17:40:11 UTC
Permalink
Is this what I need to do?
&nbsp;<a href="http://digital.ni.com/public.nsf/allkb/65F76F247012DF68862562C70073BE06" target="_blank">http://digital.ni.com/public.nsf/allkb/65F76F247012DF68862562C70073BE06</a>
&nbsp;
&nbsp;
Broken Arrow
2008-08-06 17:40:13 UTC
Permalink
Well maybe, but notice that is for before version 8. What version are you using?
Klein
2008-08-06 17:10:08 UTC
Permalink
Hi RTSLVU,
&nbsp;
These instructions worked for me:
&nbsp;
- Open the VI front panel. Click in File &gt; VI properties &gt; Windows Size
&nbsp;
- Enable: Maintain proportions of window for different monitor resolutions
&nbsp;
- Disable: Scale all objects on front panel as the window resizes
&nbsp;
Check&nbsp;if monitor resolutions are equals.
&nbsp;
&nbsp;
Klein
&nbsp;
&nbsp;Message Edited by Klein on 08-06-2008 11:50 AMMessage Edited by Klein on 08-06-2008 11:50 AM
Broken Arrow
2008-08-06 17:10:09 UTC
Permalink
The fact that his title bar font is bigger on one panel than the other points to a font issue IMO.
RTSLVU
2008-08-06 20:10:07 UTC
Permalink
I am using LV 8.5.1
I tried what it said in the KB artical I found and it did not help.
So I added
appFont=""Tahoma" 12"dialogFont="Tahoma" 13 systemFont="Tahoma" 13
To the EXE's INI file and it helpped a little.
It's not perfect but I don't have any more time to spend on it today. I understand this is a LV issue but it only seems to be an issue in this one machine. As I have complied EXE's in LV and deployed them an several machines through out our engineering lab and never once ran into this. BTW this machine is in our QA lab and has had been "customised" with lots of cute little desktop items and fancy cursors...


Target-2.jpg:
Loading Image...

Continue reading on narkive:
Loading...