MapControl PowerPoint

Created:01/26/2001
Description:

The Microsoft PowerPoint file (MapCtrlPowerPoint.ppt) has an embedded MapControl on a PowerPoint slide. Use the MapControl 'Layers' Property Page to load some sample data into the MapControl. Sample data can be found in the following location of your ArcGIS installation: \\ArcObjects Developer Kit\Samples\Data\

VBA code was added in the MapControl's OnMouseDown event to enable user panning and zooming, and to a CommandButton's OnClick event to 'zoom to the full extent' of the data.



How to use:
  1. Start PowerPoint and load MapCtrlPowerPoint.ppt.
  2. Display the MapControl property pages by right clicking on the MapControl and selecting 'Properties'. In the properties dialog box double click on the 'Custom' property.
  3. Add data to the MapControl by accessing the 'Layers' property page. Use the 'Add Layers' button to add sample data to the MapControl and press OK.
  4. View the side show.
  5. To zoom in, track a rectangle using the LEFT mouse button.
  6. To pan, use the RIGHT mouse button.

Application:
Map control

Minimum ArcGIS Version Required: 8.2

Difficulty: Beginner


Visual Basic
File Description
MapCtrlPowerPoint.ppt Microsoft PowerPoint slide show.


Key CoClasses: MapControl
Key Interfaces: IMapControl
Key Members: Exent, FullExtent, Pan, TrackRectangle