Right-Click Behavior Overview
There are three properties that affect the right-click behavior of the control. These are:
ViewMenuMode
ViewSnapToGrid
ViewSnapToShape
Right-clicking can be used to snap to a grid point, snap to a shape handle, or display a pop-up menu,
depending no the settings of these properties.
Pop-up Menu on Right-Click
To display the pop-up menu, ViewSnapToGrid and ViewSnapToShape must be disabled (set
to 0), and ViewMenuMode must be enabled. The pop-up menu gives users the ability to select a shape
type to draw or perform panning, zooming, or a net selection.
Panning is performed by clicking and dragging the mouse in desired pan direction.
A net selection is performed by clicking and dragging a rectangle boundary around one or more shapes.
The shapes intersected by this rectangle are added to the selection buffer.
The zoom realtime tool zooms according to the up and down motion of the mouse.
Net zooming is performed by clicking and dragging a rectangle boundary around the the part of the
view you wish to zoom into.
A picture of the pop-up menu is shown below:

Snapping
If the ViewSnapToGrid and the ViewSnapToShape are both turned on, the snap precedence is
ViewSnapToShape first, ViewSnapToGrid second.
ViewSnapToGrid moves the mouse to the closest grid point. ViewSnapToShape moves the
mouse to the closest handle (the mouse must be within three pixels of the shape).
See Also
![]() |
Last modified on: Tuesday, February 04, 2003