18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BUILDING APPLICATIONS WITH ACTIVEX<br />

The scenario could have been written in any other COM development environment<br />

that fully supports ActiveX including Microsoft Visual C++ and Microsoft<br />

Visual Basic for Applications. Visual Basic, while not providing all the functionality<br />

of a development environment such as Visual C++, was chosen because it<br />

appeals to a wider audience. Whichever development environment you use, your<br />

future success with the <strong>ArcGIS</strong> controls depends on your skill in both the programming<br />

environment and ArcObjects.<br />

The MapControl, PageLayoutControl, TOCControl, and ToolbarControl are used<br />

in this scenario to provide the user interface of the application, and the<br />

LicenseControl is used to configure the application with an appropriate license.<br />

The <strong>ArcGIS</strong> controls are used in conjunction with other ArcObjects and control<br />

commands by the developer to create a GIS viewing application.<br />

DESIGN<br />

The scenario has been designed to highlight how the <strong>ArcGIS</strong> controls interact<br />

with each other and to expose a part of each <strong>ArcGIS</strong> control’s object model to<br />

the developer.<br />

Each ActiveX <strong>ArcGIS</strong> control has a set of property pages that can be accessed<br />

once the control is embedded within an ActiveX container. These property pages<br />

provide shortcuts to a selection of a control’s properties and methods and allow a<br />

developer to build an application without writing any code. This scenario does<br />

not use the property pages, but rather builds up the application programmatically.<br />

For further information about the property pages, refer to <strong>ArcGIS</strong> <strong>Developer</strong><br />

Help.<br />

The <strong>ArcGIS</strong> developer samples are not included<br />

in the typical installation of the <strong>ArcGIS</strong> <strong>Engine</strong><br />

<strong>Developer</strong> Kit. If you do not have them installed,<br />

rerun the <strong>Developer</strong> Kit Install wizard, click<br />

Custom or Modify, and click the samples feature<br />

under Software <strong>Developer</strong> Kit.<br />

REQUIREMENTS<br />

To successfully follow this scenario you need the following (the requirements for<br />

deployment are covered later in the ‘Deployment’ section):<br />

• An installation of the <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Kit with an authorization<br />

file enabling it for development use.<br />

• An installation of the Microsoft Visual Basic 6.0 development environment<br />

and an appropriate license.<br />

• Familiarity with Microsoft Windows operating systems and a working knowledge<br />

of Microsoft Visual Basic 6.0. While the scenario provides some information<br />

about how to use the <strong>ArcGIS</strong> controls in Microsoft Visual Basic 6.0, it is<br />

not a substitute for training in the development environment.<br />

• While no experience with other ESRI software is required, previous experience<br />

with ArcObjects and a basic understanding of <strong>ArcGIS</strong> applications, such<br />

as ArcMap and ArcCatalog, are advantageous.<br />

• Access to the sample data and code that comes with this scenario. This is<br />

located at:<br />

\<strong>Developer</strong>Kit\samples\<strong>Developer</strong>_<strong>Guide</strong>_Scenarios\<br />

Building_an_<strong>ArcGIS</strong>_Controls_Map_Viewer_ApplicationVisual_Basic.zip<br />

Chapter 6 • <strong>Developer</strong> scenarios • 283

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!