Customization


PurposeThis sample demonstrates customizing the ToolbarControl at run time. The ToolbarControl is used in conjunction with the MapControl and the Control Commands. The AddItem method is used within the Form_Load event to add new Items to the ToolbarControl with their Style set. The Customize method determines whether the ToolbarControl can be customized at run time.

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 sample.
  2. Click on the 'Open File' button to browse your file system for an map document to work with.
  3. Check the 'Customize' check box to enable customization of the toolbar.
  4. To move an item, select it with the left mouse button and drag and drop it to the location indicated by the black vertical bar.
  5. To delete an item, either select it with the left mouse button and drag it off the ToolbarControl or select it with the right mouse button and choose delete from the customize menu.
  6. To change the group, group spacing or style of an item, select it with the right mouse button to display the customize menu.

Customization.h Main header file
Customization.cpp Main 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