Window Object

 

The Window object is the base object for several objects (PlotWindow and WksWindow). The properties and methods of this object are available to any object derived from the Window object.

 

Properties

Active

Application

Caption*

Document

Height

Index

Left

Parent

Top

Type

Width

WindowState

 

Methods

Activate

Close

 

*default property

 

Example

The following script demonstrates how the Window 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 PlotDocument object in MapViewer and

'assigns it to the variable named "Plot"

 Set Plot = mvApp.Documents.Add(mvDocPlot)

 

'Declares Windows as an object

 Dim Window As Object

 

'Assigns the Windows Collection to the

'variable named "Windows"

 Set Window = mvApp.Windows(1)

End Sub