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
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