📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "绘图"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo4
Height = 300
ItemData = "Form1.frx":0000
Left = 3360
List = "Form1.frx":0019
TabIndex = 7
Text = "类型1"
Top = 2400
Width = 1215
End
Begin VB.ComboBox Combo3
Height = 300
ItemData = "Form1.frx":004E
Left = 3360
List = "Form1.frx":005B
TabIndex = 6
Text = "黑色"
Top = 1320
Width = 1215
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "Form1.frx":0071
Left = 3360
List = "Form1.frx":007E
TabIndex = 3
Text = "黑色"
Top = 840
Width = 1215
End
Begin VB.CheckBox Check1
Caption = "填充"
Height = 255
Left = 600
TabIndex = 1
Top = 1080
Width = 1215
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "Form1.frx":0094
Left = 3360
List = "Form1.frx":00AA
TabIndex = 0
Text = "类型1"
Top = 360
Width = 1215
End
Begin VB.Label Label4
Caption = "形状类型"
Height = 180
Left = 2400
TabIndex = 8
Top = 2400
Width = 720
End
Begin VB.Label Label3
Caption = "填充颜色"
Height = 180
Left = 2280
TabIndex = 5
Top = 1320
Width = 720
End
Begin VB.Label Label2
Caption = "形状类型"
Height = 180
Left = 2280
TabIndex = 4
Top = 360
Width = 720
End
Begin VB.Label Label1
Caption = "边框颜色"
Height = 180
Left = 2280
TabIndex = 2
Top = 840
Width = 720
End
Begin VB.Line Line1
X1 = 600
X2 = 1800
Y1 = 2640
Y2 = 2640
End
Begin VB.Shape Shape1
BackColor = &H00000000&
BorderColor = &H00000000&
Height = 495
Left = 600
Top = 360
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
Shape1.BackStyle = 1
Else
Shape1.BackStyle = 0
End If
End Sub
Private Sub Combo1_Click()
Shape1.Shape = Combo1.ListIndex
End Sub
Private Sub Combo2_Click()
Select Case Combo2.Text
Case "黑色"
Shape1.BorderColor = &H0&
Case "红色"
Shape1.BorderColor = &HFF&
Case "白色"
Shape1.BorderColor = &HFFFFFF
End Select
End Sub
Private Sub Combo3_Click()
Select Case Combo3.Text
Case "黑色"
Shape1.BackColor = &H0&
Case "红色"
Shape1.BackColor = &HFF&
Case "白色"
Shape1.BackColor = &HFFFFFF
End Select
End Sub
Private Sub Combo4_Click()
Line1.BorderStyle = Combo4.ListIndex
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -