form1.frm

来自「vb电子书籍」· FRM 代码 · 共 52 行

FRM
52
字号
   VERSION 5.00
   Begin VB.Form Form1
      BackColor       =   &H00E0E0E0&
      Caption         =   "线宽与线型"
      ClientHeight    =   3795
      ClientLeft      =   60
      ClientTop       =   345
      ClientWidth     =   5205
      FillColor       =   &H00FF0000&
      BeginProperty Font
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Icon            =   "Form1.frx":0000
      LinkTopic       =   "Form1"
      ScaleHeight     =   3795
      ScaleWidth      =   5205
      StartUpPosition =   2  '屏幕中心
   End
   Attribute VB_Name = "Form1"
   Attribute VB_GlobalNameSpace = False
   Attribute VB_Creatable = False
   Attribute VB_PredeclaredId = True
   Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:Form_Click
'## 参数: 无
'##################################################################
Private Sub Form_Click()
    Dim j As Integer
    CurrentX = 0
    CurrentY = ScaleHeight / 2
    DrawWidth = 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
    
    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?