01-17-2008 06:57 PM
01-17-2008 10:48 PM
Hi ibudder,
I think VIs are available on this site that will retrieve the current display-dimensions, probably OpenG has something, and worse-case I promise to build a VI which pulls this info from a DLL in the Windows API, if you really need it! But, are you planning to dynamically position controls(?) - it can be really messy code-wise (a lot of work to support a bigger FP in the IDE.)
On the other hand, my approach is so low-tech you may be insulted by the mere suggestion! Still, here's what I do:
1) change the IDE to use the lower screen resolution while proportioning the GUI
2) Once the VI FP is sized for the lower-resolution, switch the IDE back to a comfortable development resolution, but dont' resize the VI's FP.
Just an idea!
01-18-2008 10:38 AM
01-18-2008 03:11 PM
01-18-2008 03:27 PM - edited 01-18-2008 03:31 PM
01-18-2008 03:41 PM
01-18-2008 09:50 PM
01-19-2008 01:14 AM - edited 01-19-2008 01:17 AM
01-19-2008 11:16 AM
01-21-2008 10:52 AM
One of the easiest ways to tackle varying screen resolutions is to design the front panel to the lowest resolution that you expect it to run on. It should then look acceptable on any screen larger than that. However, you can get a bit more tricky by programmatically determining the computer's screen resolution and then dynamically changing the size of your front panel objects. Use an Application Property Node and select Display>>All Monitors to return the current screen size. Then, according to the screen size, you can size the control or indicator programmatically using the Size property node for your front panel objects. Ultimately, these issues have often been a result of font size issues. Specifically, this can be a problem when two machines have different desktop theme/font settings. If your objects are coming out in different sizes on different computers, you can setup up LabVIEW to use the same font on different systems by modifying the .INI file. The easiest way is to do this: use Tools->Options->Fonts from the LabVIEW GUI. You can then set the system fonts to anything you want. After you have done this on one machine, open your INI file (it is in the same directory as the LabVIEW executable) with any text editor and copy the corresponding entries to another file. Add these entries to the INI files on any machines you want to lock to font. You will probably run into issues if you are supporting different platforms (Windows and Mac or Mac and Linux, for example), since the fonts you want may not be available on both platforms. There are Windows fonts available for both Mac and Linux platforms, so this can be somewhat ameliorated. This is all I can think of, but that's not to say these are the only solutions. You might check the Discussion Forums, as many of our LabVIEW Champions have tackled similar issues and offer their expertise as well. Here's just a few threads that I'd like to refer you to: How to make the size of VI and controls unchanged irrespective of the resolution? http://forums.ni.com/ni/board/message?board.id=170&message.id=273613&requireLogin=False How to program the front panel size to fit different monitor resolution? http://forums.ni.com/ni/board/message?board.id=170&message.id=87160&requireLogin=False I hope this discussion helps you along the way in your application development. Please let me know if you have any further questions/comments and I would be happy to discuss them with you. Otherwise, it was a pleasure assisting you and thank you for choosing National Instruments.