IntelliCAD 11.1 Object Library
SetWindow 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 : SetWindow Method

Description

method SetWindow

Syntax

Visual Basic
Public Sub SetWindow( _
   ByVal fromX As Double, _
   ByVal fromY As Double, _
   ByVal toX As Double, _
   ByVal 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.