Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 rating:
 1 out of 5     Rate this Document

How Can I Scale My Front Panel To Different Resolutions On My PDA?

Primary Software: LabVIEW Modules>>PDA Module
Primary Software Version: 8.6
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have a PDA application which I need to run on different PDAs with different resolutions. How can I make sure the front panel is correctly scaled on each device?

Solution:
The Mobile Module includes VIs which will provide the screen size at run time. You can then use property nodes to ensure that your front panel objects are scaled correctly to the current size of the screen. The VIs are located in Functions » Programming » Application Control.

PDA Get Screen Size will return two numerics, one for the screen width and one for the screen height.



PDA Screen Orientation will also return screen width and height, but will also provide a Boolean output which will return a true whenever the screen orientation has changed. Use this to programmatically react to changes in the PDA’s orientation.



Once you have the screen size, use the Position property for each of your front panel objects to ensure that they stay within the bounds of the screen, and are scaled relative to each other correctly.

Related Links:
KnowlegeBase 3BLGCRNB: Does the LabVIEW PDA Module Support Landscape Orientation?

Attachments:





Report Date: 02/14/2009
Last Updated: 02/18/2009
Document ID: 4UDEG1MO

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit