VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Vb6 例10-1 定义坐标系"
   ClientHeight    =   1530
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3135
   LinkTopic       =   "Form1"
   ScaleHeight     =   1530
   ScaleWidth      =   3135
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Paint()
    Cls
    Form1.Scale (-200, 250)-(300, -150)
    Line (-200, 0)-(300, 0)                         ' 画X轴
    Line (0, 250)-(0, -150)                         ' 画Y轴
    CurrentX = 0: CurrentY = 0: Print 0             ' 标记坐标原点
    CurrentX = 280: CurrentY = 40: Print "X"        ' 标记X轴
    CurrentX = 10: CurrentY = 240: Print "Y"        ' 标记Y轴
End Sub
