Overview


Purpose
This application contains two PageLayoutControls. The browse dialog allows users to search and select map documents, which are validated and loaded into the main PageLayoutControl, thus triggering the OnPageLayoutReplaced event. The OnPageLayoutReplaced event determines the MxPath property of the main PageLayoutControl and uses it to load the same document into the second PageLayoutControl with the LoadMxFile method.
 
The OnExtentUpdated event is triggered when a user zooms in on the main PageLayoutControl. The event uses the AddElement method to add an element displaying the visible extent of the main PageLayoutControl on the second PageLayoutControl. Any previous elements on the second PageLayoutControl are found using the FindElementByName method and are deleted from the GraphicsContainer. The Refresh method is used to refresh the graphics to reflect the changes.

How to use

If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the application.
  2. Click on the Load button to browse your file system for a map document to load into the PageLayoutControl.
  3. Use the left mouse button to zoom in, and the right mouse button to pan the main PageLayoutControl. View the visible extent on the other PageLayoutControl.

Overview.h Main header file
Overview.cpp Main implementation file
PageLayoutControlEvents.h Event header file
PageLayoutControlEvents.cpp Event implementation file
Makefile.SolarisMotif Solaris Project Makefile
Makefile.LinuxMotif Linux Project Makefile
Download the Motif_CPP files

Download the files for all languages




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime