Create a global navigation menu using PxInclude

Create a global navigation menu that you can use on multiple Px pages in a station to achieve a standardized, uniform look.

You can have a consistent navigation menu available on your home page or on all pages and you need only edit the navigation menu page any time a change is required. Since the navigation menu Px file is a PxInclude on the other Px views, they are automatically updated with any change that you make.

  1. Create a new Px view for the menu.
    Note: Remove the ScrollPane at the root in this view otherwise scroll bars display on the menu once it is embedded in other Px views.
  2. Drag Action Button widgets from the kitPx palette to the canvas pane, one for each Px view that includes the menu.
  3. For each image button widget, add a value binding setting the ord property to the appropriate Px file. For example, Home.px, Basement.px, 1st_Floor.px, 2nd_Floor.px.
  4. Click the Save icon in the toolbar to save your changes.
    This Px file is the global, navigation menu that you can include in other Px views.

  5. To embed the navigation menu, drag the PxInclude widget from the bajaui palette to each of the other Px pages on the station.
The result is a standardized menu displayed on each page, which you maintain by editing the navigation menu page any time a change is required.