18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BUILDING APPLICATIONS WITH ACTIVEX<br />

The controls and libraries used in this scenario are as follows:<br />

• LicenseControl • Carto Object Library<br />

• MapControl • Display Object Library<br />

• PageLayoutControl • Geometry Object Library<br />

• TOCControl<br />

• ToolbarControl<br />

• SystemUI Object Library<br />

In Visual Basic, these control and library names are prefixed with ‘esri’.<br />

IMPLEMENTATION<br />

The implementation below provides you with all the code you will need to<br />

successfully complete the scenario. It does not provide step-by-step instructions<br />

to develop applications in Visual Basic 6.0, as it assumes that you have a working<br />

knowledge of the development environment already.<br />

The ESRI Automatic References Visual Basic Add-<br />

In can be used to quickly select and reference<br />

the <strong>ArcGIS</strong> controls and other <strong>ArcGIS</strong> <strong>Engine</strong><br />

libraries that you frequently use in Visual<br />

Basic 6.0. To load the add-in click Add-In<br />

Manager from the Add-Ins menu, click ESRI<br />

Automatic References, and check the load<br />

behavior check boxes. To then display the Add-In,<br />

click ESRI Automatic References from the Add-Ins<br />

menu.<br />

Loading the <strong>ArcGIS</strong> controls<br />

Before you start to program your application, the <strong>ArcGIS</strong> controls and the other<br />

<strong>ArcGIS</strong> <strong>Engine</strong> library references that the application will use should be loaded<br />

into the development environment.<br />

1. Start Visual Basic and create a new Standard EXE project from the New<br />

project dialog box.<br />

2. Click the Project menu and click Components.<br />

3. In the Components dialog box, check ESRI MapControl, ESRI<br />

PageLayoutControl, ESRI TOCControl, ESRI ToolbarControl, and ESRI<br />

LicenseControl. Click OK.<br />

ESRIMapControl<br />

ESRIPageLayoutControl<br />

ESRITOCControl<br />

ESRIToolbarControl<br />

ESRILicenseControl<br />

284 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!