Choosing a Px Media type

You can design Px files for a specific primary media type and indicate the media type on the Px view property sheet, as shown below.

Choosing a media type has specific benefits that help you get started when you first create a new view on a component and while you are working in the Px Editor.



Figure 5.   Specifying the target media
Image
 

NOTE: Media values affect the initial contents of a Px file when you create it. Changing a view’s Media type (on a component property sheet) after the Px file is created does not actually change the Px file.
 

In addition to the default, WbPxMedia type, you can select one of the following when creating a new view on a component:

  • HxPxMedia

    Choosing this media type provides you with a Px file that has a ScrollPane with a CanvasPane. With this property value set, the Px Editor can warn you, as you design your Px file, if you choose a widget that is not supported by Hx media.



    Figure 6.   HxPxMedia creates Px page with Scroll and Canvas Panes
    Image
  • ReportPxMedia

    Assigning this media type when creating a new Px page, creates a new Px file with a Report Pane containing a timestamp and page numbering at the root of the Px file.



    Figure 7.   ReportPxMedia creates Px page with Report Pane
    Image
  • MobilePxMedia

    You must use a BasicMobilePane at the root of your Px page so it will display correctly on a mobile device. Assigning a MobilePxMedia type when creating a new Px page, causes the new page to come with a BasicMobilePane at the root of the Px file, as shown in the following figure.



    Figure 8.   MobilePxMedia creates Px page with BasicMobile Pane
    Image
     

    NOTE: Starting in AX-3.8, setting the CanvasPane scaleMode property to Fit Ratio will cause your Px page to automatically to scale to fit various device display sizes.