CommandsAndTools



Description:

This project provides an example of an Extension complete with a number of a command, menu, multi-item, subtyped command, tool, toolbar and toolcontrol. This sample is designed to show you how to use the different types of command items, and how to combine them into an extension.

For more information, see the Extending ArcObjects topic CommandsAndTools Example.

Products:
ArcEditor: VB6

Platforms: Windows

Minimum ArcGIS Release: 9.0

How to use:
  1. Register the CommandsAndToolsVB.dll and double-click the CommandsAndToolsVB.reg file to register the custom classes to the appropriate component categories. (see "How to Use the Samples").
  2. Open ArcMap, and add a few data layers to the map.
  3. Click Tools, then Customize..
  4. In the Customize dialog box, select the Toolbars tab, and then check 'Sample Toolbar'. Click Close to dismiss the Customize dialog box.

    You should now see the Sample Toolbar toolbar in ArcMap.

  5. Again click Tools, then click Extensions.
  6. In the Extensions dialog box, check 'Sample Extension', and then click close to dismiss the Extensions dialog box.

    The Sample Toolbar toolbar should now be enabled - you can use them to interact with the map.


Download the VB6 files
CommandsAndToolsVB.dll The compiled component.
CommandsAndToolsVB.reg Registry export file that can be used to register the classes to the appropriate component categories.
CommandsAndToolsVB.RES Resource file containing icons and cursors for the project.
CommandsAndToolsVB.vbp Visual Basic project file.
frmControls.frm Form containing the controls for the project.
SampleCommand.cls Class module that defines an example custom command.
SampleExtension.cls Class module that an example custom extension.
SampleMenu.cls Class module that an example custom menu.
SampleMultiItem.cls Class module that an example custom multiitem.
SampleSubtypedCmd.cls Class module that an example custom subtyped command.
SampleTool.cls Class module that an example custom tool.
SampleToolbar.cls Class module that an example custom toolbar.
SampleToolControl.cls Class module that an example custom tool control.

Download the files for all languages



Key Libraries: Framework, SystemUI
Key Interfaces: ICommand, ICommandSubtype, IExtension, IExtensionConfig, IMenuDef, IMultiItem, IMultiItemEx, IRootLevelMenu, IToolbarDef, ITool, IToolControl