PlotWindow Object

 

The PlotWindow object represents a single map window.

 

Derived from: Window object (All methods and properties of Window apply to this object.)

 

Properties

AutoRedraw

HorizontalRuler

ShowGrid

ShowPage

ShowRulers

VerticalRuler

 

Methods

Redraw

Zoom

ZoomPoint

ZoomRectangle

 

Example

The following script demonstrates how the PlotWindow object is used.

 

Sub Main

'Declares mvApp as an object

 Dim mvApp As Object

 

'Creates an instance of the MapViewer Application

'object and assigns it to the variable named "mvApp"

 Set mvApp = CreateObject("MapViewer.Application")

 

'Makes MapViewer visible

 mvApp.Visible = True

 

'Declares Plot as an object

 Dim Plot As Object

 

'Creates a Document object in MapViewer and

'assigns it to the variable named "Plot"

 Set Plot = mvApp.Documents.Add(mvDocPlot)

 

'Declares PlotWindow as an object

 Dim PlotWindow As Object

 

'Assigns the new map window to the

'variable named "PlotWindow"

 Set PlotWindow = Plot.NewWindow

End Sub