📄 例6.frm
字号:
VERSION 5.00
Begin VB.Form FRM6_5_6
Caption = "FRM6_5_6"
ClientHeight = 3900
ClientLeft = 60
ClientTop = 450
ClientWidth = 6795
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form2"
ScaleHeight = 3900
ScaleWidth = 6795
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton CMDSHAPE
Caption = "结束"
Height = 615
Index = 3
Left = 240
TabIndex = 4
Top = 2880
Width = 1695
End
Begin VB.CommandButton CMDSHAPE
Caption = " 椭圆"
Height = 615
Index = 2
Left = 240
TabIndex = 3
Top = 2040
Width = 1695
End
Begin VB.CommandButton CMDSHAPE
Caption = "矩形"
Height = 615
Index = 1
Left = 240
TabIndex = 2
Top = 1200
Width = 1695
End
Begin VB.PictureBox PicShApe
Height = 2535
Left = 2880
ScaleHeight = 2475
ScaleWidth = 3075
TabIndex = 1
Top = 600
Width = 3135
End
Begin VB.CommandButton CMDSHAPE
Caption = "直线"
Height = 615
Index = 0
Left = 240
TabIndex = 0
Top = 360
Width = 1695
End
End
Attribute VB_Name = "FRM6_5_6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdShape_Click(Index As Integer)
PicShApe.Cls
PicShApe.FillStyle = 5
Select Case Index
Case 0
PicShApe.Print "画直线"
PicShApe.Line (2, 2)-(7, 7)
Case 1
PicShApe.Print "画矩形"
PicShApe.Line (2, 2)-(7, 7), , BF
Case 2
PicShApe.Print "画椭圆"
PicShApe.Circle (4.5, 4.5), 3.5, , , , 0.4
Case Else
End
End Select
End Sub
Private Sub Form_Load()
PicShApe.Scale (0, 0)-(10, 10) '设置坐标系
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -