VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "VB6 例10-3 线宽与线型"
   ClientHeight    =   1830
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4995
   LinkTopic       =   "Form1"
   ScaleHeight     =   1830
   ScaleWidth      =   4995
   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_Click()
    Dim j As Integer
    CurrentX = 0                            ' 设置开始位置
    CurrentY = ScaleHeight / 2
   ' ForeColor = QBColor(0)                  ' 设置颜色
    DrawWidth = 1                           ' 定义线的宽度为1
    For j = 0 To 6
        DrawStyle = j                       ' 定义线的形状
        Line -Step(ScaleWidth / 15, 0)      ' 画线
    Next j
    For j = 1 To 6
        DrawWidth = j * 3                   ' 定义线的宽度
        Line -Step(ScaleWidth / 15, 0)      ' 画线
    Next j
End Sub

