home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmSettings
- Caption = "Viewport & Window Settings"
- ClientHeight = 2955
- ClientLeft = 1815
- ClientTop = 2220
- ClientWidth = 6240
- Height = 3360
- Left = 1755
- LinkTopic = "Form1"
- ScaleHeight = 2955
- ScaleWidth = 6240
- Top = 1875
- Width = 6360
- Begin VB.Frame Frame3
- Caption = "Rectangle && Circle:"
- Height = 1335
- Left = 60
- TabIndex = 0
- Top = 60
- Width = 3495
- Begin VB.TextBox txtRectY2
- Height = 315
- Left = 2400
- TabIndex = 4
- Text = "100"
- Top = 840
- Width = 675
- End
- Begin VB.TextBox txtRectX2
- Height = 285
- Left = 1320
- TabIndex = 3
- Text = "100"
- Top = 840
- Width = 675
- End
- Begin VB.TextBox txtRectY1
- Height = 315
- Left = 2400
- TabIndex = 2
- Text = "0"
- Top = 240
- Width = 675
- End
- Begin VB.TextBox txtRectX1
- Height = 285
- Left = 1320
- TabIndex = 1
- Text = "0"
- Top = 240
- Width = 675
- End
- Begin VB.Label Label7
- Caption = "Y: "
- Height = 255
- Left = 2160
- TabIndex = 28
- Top = 900
- Width = 135
- End
- Begin VB.Label Label6
- Caption = "Y: "
- Height = 255
- Left = 2160
- TabIndex = 27
- Top = 300
- Width = 135
- End
- Begin VB.Label Label1
- Caption = "Bottom Right: X:"
- Height = 195
- Index = 5
- Left = 60
- TabIndex = 26
- Top = 900
- Width = 1275
- End
- Begin VB.Label Label1
- Caption = "Top Left: X:"
- Height = 195
- Index = 4
- Left = 120
- TabIndex = 25
- Top = 300
- Width = 1155
- End
- End
- Begin VB.CommandButton cmdCancel
- Cancel = -1 'True
- Caption = "&Cancel"
- Height = 555
- Left = 4860
- TabIndex = 14
- Top = 840
- Width = 1215
- End
- Begin VB.CommandButton cmdOK
- Caption = "&OK"
- Default = -1 'True
- Height = 555
- Left = 4860
- TabIndex = 13
- Top = 180
- Width = 1215
- End
- Begin VB.Frame Frame2
- Caption = "Viewport (Pixels):"
- Height = 1335
- Left = 60
- TabIndex = 20
- Top = 1500
- Width = 2955
- Begin VB.TextBox txtViewOrgX
- Height = 285
- Left = 1020
- TabIndex = 5
- Text = "200"
- Top = 240
- Width = 675
- End
- Begin VB.TextBox txtViewOrgY
- Height = 315
- Left = 2100
- TabIndex = 6
- Text = "75"
- Top = 240
- Width = 675
- End
- Begin VB.TextBox txtViewExtX
- Height = 285
- Left = 1020
- TabIndex = 7
- Text = "100"
- Top = 840
- Width = 675
- End
- Begin VB.TextBox txtViewExtY
- Height = 315
- Left = 2100
- TabIndex = 8
- Text = "100"
- Top = 840
- Width = 675
- End
- Begin VB.Label Label1
- Caption = "Origin: X: "
- Height = 195
- Index = 3
- Left = 120
- TabIndex = 24
- Top = 300
- Width = 855
- End
- Begin VB.Label Label1
- Caption = "Extents: X:"
- Height = 195
- Index = 2
- Left = 60
- TabIndex = 23
- Top = 900
- Width = 915
- End
- Begin VB.Label Label5
- Caption = "Y: "
- Height = 255
- Left = 1860
- TabIndex = 22
- Top = 300
- Width = 135
- End
- Begin VB.Label Label4
- Caption = "Y: "
- Height = 255
- Left = 1860
- TabIndex = 21
- Top = 900
- Width = 135
- End
- End
- Begin VB.Frame Frame1
- Caption = "Logical Window:"
- Height = 1335
- Left = 3180
- TabIndex = 15
- Top = 1500
- Width = 2955
- Begin VB.TextBox txtWinExtY
- Height = 315
- Left = 2100
- TabIndex = 12
- Text = "100"
- Top = 840
- Width = 675
- End
- Begin VB.TextBox txtWinExtX
- Height = 285
- Left = 1020
- TabIndex = 11
- Text = "100"
- Top = 840
- Width = 675
- End
- Begin VB.TextBox txtWinOrgY
- Height = 315
- Left = 2100
- TabIndex = 10
- Text = "0"
- Top = 240
- Width = 675
- End
- Begin VB.TextBox txtWinOrgX
- Height = 285
- Left = 1020
- TabIndex = 9
- Text = "0"
- Top = 240
- Width = 675
- End
- Begin VB.Label Label3
- Caption = "Y: "
- Height = 255
- Left = 1860
- TabIndex = 19
- Top = 900
- Width = 135
- End
- Begin VB.Label Label2
- Caption = "Y: "
- Height = 255
- Left = 1860
- TabIndex = 18
- Top = 300
- Width = 135
- End
- Begin VB.Label Label1
- Caption = "Extents: X:"
- Height = 195
- Index = 1
- Left = 60
- TabIndex = 17
- Top = 900
- Width = 915
- End
- Begin VB.Label Label1
- Caption = "Origin: X: "
- Height = 195
- Index = 0
- Left = 120
- TabIndex = 16
- Top = 300
- Width = 855
- End
- End
- Attribute VB_Name = "frmSettings"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- ' Copyright
- 1997 by Desaware Inc. All Rights Reserved
- Private Sub cmdCancel_Click()
- Unload Me
- End Sub
- Private Sub cmdOK_Click()
- frmViewport.viewOrgX& = CLng(txtViewOrgX)
- frmViewport.viewOrgY& = CLng(txtViewOrgY)
- frmViewport.viewExtX& = CLng(txtViewExtX)
- frmViewport.viewExtY& = CLng(txtViewExtY)
- frmViewport.WinOrgX& = CLng(txtWinOrgX)
- frmViewport.WinOrgY& = CLng(txtWinOrgY)
- frmViewport.WinExtX& = CLng(txtWinExtX)
- frmViewport.WinExtY& = CLng(txtWinExtY)
- frmViewport.RectX1& = CLng(txtRectX1)
- frmViewport.RectY1& = CLng(txtRectY1)
- frmViewport.RectX2& = CLng(txtRectX2)
- frmViewport.RectY2& = CLng(txtRectY2)
- frmViewport!pctScreen.Refresh
- Unload Me
- End Sub
- Private Sub Text2_Change()
- End Sub
- Private Sub Form_Load()
- txtViewOrgX = CStr(frmViewport.viewOrgX&)
- txtViewOrgY = CStr(frmViewport.viewOrgY&)
- txtViewExtX = CStr(frmViewport.viewExtX&)
- txtViewExtY = CStr(frmViewport.viewExtY&)
- txtWinOrgX = CStr(frmViewport.WinOrgX&)
- txtWinOrgY = CStr(frmViewport.WinOrgY&)
- txtWinExtX = CStr(frmViewport.WinExtX&)
- txtWinExtY = CStr(frmViewport.WinExtY&)
- txtRectX1 = CStr(frmViewport.RectX1&)
- txtRectY1 = CStr(frmViewport.RectY1&)
- txtRectX2 = CStr(frmViewport.RectX2&)
- txtRectY2 = CStr(frmViewport.RectY2&)
- End Sub
- Private Sub txtViewExtX_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtViewExtY_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtViewOrgX_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtViewOrgY_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtWinExtX_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtWinExtY_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtWinOrgX_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtWinOrgY_KeyPress(KeyAscii As Integer)
- If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) And KeyAscii <> 8 Then
- KeyAscii = 0
- End If
- End Sub
-