05-23-2007 02:19 PM
05-24-2007 11:00 AM
Hi Dave-
Check out the following DevZone example programs:
Changing monitor resolution programatically using LabVIEW
Changing Screen Resolution Programmatically From LabVIEW
Scaling VI Fonts With Monitor Resolution
There are also some features that allow you to auto-scale VIs. If you go to VI Properties for a given VI, under the Window Size category this is a checkbox with the option "Maintain proportions of window for different monitor resolutions". This basically resizes the bounds of the VI itself when opened on machines with different resolutions, but it does not actually scale any objects. There is another option in the same category titled "Scale all objects on front panel as the window resizes" which will actually resize front panel objects as you resize the window.
Hope this helps!
05-25-2007 04:27 PM
05-29-2007 01:15 PM
Hi Dave-
Thanks for attaching the PDF of screenshots. I found another situation where a customer had control/indicator placements slightly altered due to font issues between XP and Vista. The following solution is documented in the KnowledgeBase article for LabVIEW 8.2.1 Readme Files.
"Because the default fonts on Windows Vista are different than the default fonts on previous versions of Windows, you might notice cosmetic issues, such as overlapping or truncated text strings, in VIs and LabVIEW dialog boxes. To correct this problem, change the theme of the operating system to Windows Classic in the Theme Settings dialog box and then restart LabVIEW. Select Start»Control Panel»Appearance and Personalization and click Change the theme to display the Theme Settings dialog box."
Vista is changing the default application font to something larger, which causes text to grow in LabVIEW front panels and block diagrams that make use of the application font, and this can sometimes affect the boundaries of objects. The opposite effect can happen when going from Vista back to XP. NI is choosing not to change anything for the API of LabVIEW since doing so would cause mixed results with upgraded apps and new controls and so on.
Hope this helps!
07-09-2007 03:18 AM
Droopy,
are you saying that an application buildt with LV8.2.1 under Vista with "application font" looks different from the same application buildt with XP???
There is a general approach other than forcing Vista user to use the "window classic" theme???
It seems a serious "upgrade/downgrade" issue, considering that XP is still very popular, but Vista is growing up (from now on every new PC has Vista inside...)
07-09-2007 10:39 AM
On May 25th I sent a pdf that shows how the screen looks different when using XP and
Here's the story. Last December the customer released an order for us to develop a custom application. Last March we released the application with the specification that Win-XP be used for the OS. At that point
In the mean time I modified the application to programmatically determine the OS used and make the necessary adjustments. I thank and appreciate the NI programmer who set up the FP.WinBounds and Position property nodes. The problem may be seen as a minor cosmetic issue. However, the customer paid a lot for the application and sometimes image is everything.
And now I ask a humble question. Is this craziness what we went to school for? Anyway I prepared this replay as an update in case anyone is interested.
Thanks,
Dave J.
07-09-2007 11:13 AM
Dave J., I saw your pdf.
Another issue is: Do we have to rebuild our old application?????? WTF?!?
If you develop an application, that was ok, but suddenly more and more people will run Vista, what can we do?? it's the hell!
Dave, can you please post a piece of code to show how to programmatically determine OS and in case of Vista/Xp do some resize/change font or something??
A possibile general solution for people still building inside XP:
enlarge a bit the space for the strings/text, so that in case the application run on Vista, the little extra space can fit the text.
This would require at least to run once the final application on Vista, to see if it's ok.
What do you think of this?
I think that forcing people to turn Vista to classical theme is a very bad solution. If I buy Vista, I want his new look and feel, FX and so on, and many people think so.
07-09-2007 12:31 PM
Yes, apparently we have to rebuild to use
For me there are two fundamental problems with differences between XP and
1. There are significant changes in the way text is displayed in VISTA when the theme is set to Windows
2. Regardless of setting the theme to Windows Classic or Windows Vista, there are differences in the placement of graphical objects. For my application, I have to programmatically change the location of a cluster in the main vi and the front panel of displayed vi’s. Attached are the requested details on how I do this. Please let me know if there is a better way.
I hope that eventually the trouble with Windows Vista theme and font display will be resolved. I cannot programmatically change all the object text (i.e. captions) to compensate. That would be too painful for me to bear. I don’t think enlarging the area for text is viable because it’s unpredictable and I have some applications with hundreds of front panel objects. Trying to compensate for text enlargements would send me to the nut house.
Setting the theme to Windows Classic is inappropriate but I have commitments and deadlines. The show must go on…
Keep in touch,
Dave J.