IntelliCAD 11.1 Object Library
GetWindow Method
See Also 
fromX
The x coordinate of the lower-left corner of the window.
fromY
The y coordinate of the lower-left corner of the window.
toX
The x coordinate of the upper-right corner of the window.
toY
The y coordinate of the upper-right corner of the window.
PlotManager Object : GetWindow Method

Description

method GetWindow

Syntax

Visual Basic
Public Sub GetWindow( _
   ByRef fromX As Double, _
   ByRef fromY As Double, _
   ByRef toX As Double, _
   ByRef toY As Double _
) 

Parameters

fromX
The x coordinate of the lower-left corner of the window.
fromY
The y coordinate of the lower-left corner of the window.
toX
The x coordinate of the upper-right corner of the window.
toY
The y coordinate of the upper-right corner of the window.

Example

Private Sub Get/SetWindow_Example()

     ' This example gets and resets the window coordinates.

     Dim fx As Double

     Dim fy As Double

     Dim tx As Double

     Dim ty As Double

     IntelliCAD.PlotManager.GetWindow fx, fy, tx, ty

     MsgBox "Lower Left X = : " & fx & "Lower Left Y = : " & fy & Chr(13) & "Upper Right X = : " & tx & "Upper Right Y = : " & ty

     IntelliCAD.PlotManager.SetWindow fx + 1, fy + 1, tx + 1, ty + 1

     IntelliCAD.PlotManager.GetWindow fx, fy, tx, ty

     MsgBox "Lower Left X = : " & fx & "Lower Left Y = : " & fy & Chr(13) & "Upper Right X = : " & tx & "Upper Right Y = : " & ty

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.