Draw graphic elements on map


Purpose This sample demonstrates how to create a toolbar palette of drawing tools and graphic elements on a map. The palette is accessed from the ToolbarBean or by right-clicking the PageLayoutBean.
 
The addItem method is used in setBuddyControlAndTools to add new items to the ToolbarBean with their style set. In the PageLayoutBean OnMouseDown event, the popupPalette method is used to display the ToolbarPalette when the right mouse button is pressed.

How to use

See How to use ArcGIS samples for help running the sample.

  1. Run the DrawGraphicElementsOnMap application.
  2. Click the palette, select a graphic element, and draw it on the map by clicking and dragging the mouse.





Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo