📄 线信息.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form frmLine
Caption = "线信息"
ClientHeight = 6705
ClientLeft = 60
ClientTop = 450
ClientWidth = 7260
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form2"
ScaleHeight = 6705
ScaleWidth = 7260
StartUpPosition = 3 '窗口缺省
Begin MSComDlg.CommonDialog CommonDialog1
Left = 6120
Top = 4920
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command2
Caption = "确定"
Height = 855
Left = 5400
TabIndex = 17
Top = 1800
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "修改"
Height = 855
Left = 5400
TabIndex = 16
Top = 720
Width = 1455
End
Begin VB.TextBox Text8
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 2520
TabIndex = 14
Top = 5640
Width = 2295
End
Begin VB.TextBox Text7
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 13
Top = 4800
Width = 2295
End
Begin VB.TextBox Text6
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 7
Top = 4080
Width = 2415
End
Begin VB.TextBox Text5
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 6
Top = 3360
Width = 2415
End
Begin VB.TextBox Text4
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 5
Top = 2640
Width = 2415
End
Begin VB.TextBox Text3
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 4
Top = 1920
Width = 2415
End
Begin VB.TextBox Text2
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 3
Top = 1200
Width = 2415
End
Begin VB.TextBox Text1
Enabled = 0 'False
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 2
Top = 480
Width = 2415
End
Begin VB.Label Label8
Caption = " Color"
Height = 615
Left = 120
TabIndex = 15
Top = 5760
Width = 1815
End
Begin VB.Label Label7
Caption = "LineStyle"
Height = 615
Left = 120
TabIndex = 12
Top = 4920
Width = 1695
End
Begin VB.Label Label6
Caption = " size"
Height = 495
Left = 120
TabIndex = 11
Top = 4200
Width = 1695
End
Begin VB.Label Label5
Caption = "endpoint.Y"
Height = 495
Left = 240
TabIndex = 10
Top = 3480
Width = 1575
End
Begin VB.Label Label4
Caption = "endpoint.X"
Height = 495
Left = 240
TabIndex = 9
Top = 2640
Width = 1575
End
Begin VB.Label Label3
Caption = "startpoint.Y"
Height = 495
Left = 120
TabIndex = 8
Top = 1920
Width = 1695
End
Begin VB.Label Label2
Caption = "startpoint.X"
Height = 495
Left = 120
TabIndex = 1
Top = 1200
Width = 1695
End
Begin VB.Label Label1
Caption = " ID"
Height = 495
Left = 360
TabIndex = 0
Top = 480
Width = 1335
End
End
Attribute VB_Name = "frmLine"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Me.Text2.Enabled = True
Me.Text3.Enabled = True
Me.Text4.Enabled = True
Me.Text5.Enabled = True
Me.Text6.Enabled = True
Me.Text7.Enabled = True
Me.Text8.Enabled = True
End Sub
Private Sub Command2_Click()
LineArray(nselectidl).startPoint.X = Me.Text2
LineArray(nselectidl).startPoint.Y = Me.Text3
LineArray(nselectidl).endPoint.X = Me.Text4
LineArray(nselectidl).endPoint.Y = Me.Text5
LineArray(nselectidl).size = Me.Text6
Form1.DrawStyle = Me.Text7
LineArray(nselectidl).nStyle = Me.Text7
LineArray(nselectidl).color = Me.Text8.BackColor
Form1.Refresh
End Sub
Private Sub Text8_click()
Me.CommonDialog1.ShowColor
Me.Text8.BackColor = CommonDialog1.color
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -