Another popular navigation strategy is to drill down into various areas of your project using a map. The Drill Down navigation strategy is ideal if you have different geographical locations. A good example is to have a main window that has an image representing a plant or factory. The image can have any type of drawing tool component, such as an rectangle, circle, etc., that overlays the image. When the user selects one of the overlay components, the Client swaps windows with a window that displays information that pertains to the selected area of the plant. 

It is a very simple navigation strategy to set up and is popular because it lets users select different areas on an image and drill down to access specific information about that geographic location. 

On this page ...

Navigation - Drill Down

This example demonstrates how to use a US map and configure it to get information about different geographical facilities sprinkled across the US.

  1. Drag an image on to a Main Window. It can be any type of image including a photo. This example uses an image of a US Map. 
  2. Add a Drawing Tool shape such as a rectangle, circle, polygon over an area on your image to identify the location. In the example, we use different color circles.
  3. Right click your drawing tool and select Scripting.   
  4. Select the mousePressed event handler, and with the Navigation tab selected.
    1. Select the Open/Swap radio button.
    2. From the Window drop-down box, select the window that relates to the selected area on the map.
    3. Click OK.

  5.  In the Project Browser, select your US Map window and set it to Open on Startup.


    Note: This example assumes you already have your area windows created in your Project Browser.

  6. On your area window, add a Button component so you can navigate back to the main window containing the overview map. (If you have multiple area windows, copy and paste this button on to each window).
    1. Open your area window.
    2. Add a Button component.
    3. Right click on the Button component and select Scripting.

  7. Select the mousePressed event handler, and with the Navigation tab selected:
    1. Select the Open/Swap radio button.
    2. From the Window drop-down box, select the window that is your overview map.
    3. Click OK.

  8. In Preview Mode, test your window navigation by switching between windows.
  9. Save your project.
  10. Now you can try it out by opening your Client and clicking on a shape to navigate to the selected area.  Prior to clicking, the Mouseover Text displays the location information when you hover over one of the circles. Once you click on a designated area on the map, a new window will open.

  11. Click on the US Map button to go back to the US Map. 

  • No labels