ClickDragAndShow()
Summary
Allows the user to pan a map by dragging it to a new position.
Syntax
ClickDragAndShow()
Notes
-
ClickDragAndShow() is used to support the Pan tool (grabber hand) in the main toolbox.
-
ClickDragAndShow() works only on the current map.
-
This function should be called only from a macro that is activated from the menus, or from a tool in a toolbox or toolbar. Calling it from any other type of dialog box often causes confusion about which window is active (the dialog box, versus the map).
Error Codes
| Error Type | Meaning |
|---|---|
| Escape | The user pressed Esc while dragging the map |
| Error | The current window is not a map window |
See Also
| Function | Summary |
|---|---|
| CenterMap() | Centers a map at a particular location |
| ZoomAndCenterMap() | Changes the scale and center of a map |
| ZoomMap() | Changes the scale of a map |