📄 color.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 0 'None
Caption = "选择颜色"
ClientHeight = 1005
ClientLeft = 7455
ClientTop = 4800
ClientWidth = 7680
FillColor = &H00FFFFFF&
ForeColor = &H00FFFFFF&
Icon = "color.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 67
ScaleMode = 3 'Pixel
ScaleWidth = 512
ShowInTaskbar = 0 'False
Begin VB.PictureBox Picture11
BackColor = &H00000000&
Height = 300
Left = 240
ScaleHeight = 240
ScaleWidth = 240
TabIndex = 29
Top = 360
Width = 300
End
Begin VB.PictureBox Picture10
BackColor = &H00FFFFFF&
Height = 300
Left = 345
ScaleHeight = 240
ScaleWidth = 240
TabIndex = 30
Top = 465
Width = 300
End
Begin VB.PictureBox Picture0
BackColor = &H0080C0FF&
Height = 240
Index = 27
Left = 4350
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 28
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00FF80FF&
Height = 240
Index = 26
Left = 4080
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 27
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00FFFF80&
Height = 240
Index = 25
Left = 3540
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 26
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00FF8080&
Height = 240
Index = 24
Left = 3810
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 25
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H0080FF80&
Height = 240
Index = 23
Left = 3270
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 24
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H0080FFFF&
Height = 240
Index = 22
Left = 3000
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 23
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00FF0000&
Height = 240
Index = 21
Left = 2460
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 22
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00FF00FF&
Height = 240
Index = 20
Left = 2730
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 21
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00FFFF00&
Height = 240
Index = 19
Left = 2190
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 20
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H0000FF00&
Height = 240
Index = 18
Left = 1920
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 19
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H000000FF&
Height = 240
Index = 17
Left = 1380
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 18
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H0000FFFF&
Height = 240
Index = 16
Left = 1650
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 17
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00C0C0C0&
Height = 240
Index = 15
Left = 1110
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 16
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00FFFFFF&
Height = 240
Index = 14
Left = 840
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 15
Top = 600
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00004080&
Height = 240
Index = 13
Left = 4350
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 14
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00C000C0&
Height = 240
Index = 12
Left = 4080
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 13
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00C0C000&
Height = 240
Index = 11
Left = 3540
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 12
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00C00000&
Height = 240
Index = 10
Left = 3810
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 11
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H0000C000&
Height = 240
Index = 9
Left = 3270
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 10
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H0000C0C0&
Height = 240
Index = 8
Left = 3000
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 9
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00800000&
Height = 240
Index = 7
Left = 2460
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 8
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00800080&
Height = 240
Index = 6
Left = 2730
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 7
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00808000&
Height = 240
Index = 5
Left = 2190
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 6
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00008000&
Height = 240
Index = 4
Left = 1920
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 5
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00000080&
Height = 240
Index = 3
Left = 1380
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 4
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00008080&
Height = 240
Index = 2
Left = 1650
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 3
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00808080&
Height = 240
Index = 1
Left = 1110
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 2
Top = 360
Width = 240
End
Begin VB.PictureBox Picture0
BackColor = &H00000000&
Height = 240
Index = 0
Left = 840
ScaleHeight = 180
ScaleWidth = 180
TabIndex = 1
Top = 360
Width = 240
End
Begin VB.PictureBox Picture9
Appearance = 0 'Flat
AutoRedraw = -1 'True
AutoSize = -1 'True
BackColor = &H00FFC0C0&
ForeColor = &H80000008&
Height = 570
Left = 165
ScaleHeight = 540
ScaleWidth = 585
TabIndex = 0
Top = 285
Width = 615
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "当前点坐标:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000080FF&
Height = 240
Left = 4920
TabIndex = 34
Top = 300
Width = 1020
End
Begin VB.Label Labely
Caption = "0"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 255
Left = 6600
TabIndex = 33
Top = 270
Width = 375
End
Begin VB.Line Line1
BorderColor = &H00E0E0E0&
BorderWidth = 2
Index = 1
X1 = 0
X2 = 570
Y1 = 1
Y2 = 1
End
Begin VB.Line Line1
BorderWidth = 2
Index = 0
X1 = 0
X2 = 570
Y1 = 2
Y2 = 2
End
Begin VB.Shape Shape1
BorderWidth = 2
Height = 765
Left = 4800
Top = 195
Width = 2775
End
Begin VB.Label Labelx
Caption = "0"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 255
Left = 6120
TabIndex = 32
Top = 270
Width = 375
End
Begin VB.Label Label1
BackColor = &H00FF8080&
BorderStyle = 1 'Fixed Single
Caption = "新文件"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 300
Left = 4920
TabIndex = 31
Top = 555
Width = 2505
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'选取颜色
Private Sub Picture0_Mousedown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Form2.Label1.Caption = Picture0(Index).BackColor
If Button = 1 Then Picture11.BackColor = Picture0(Index).BackColor
If Button = 2 Then Picture10.BackColor = Picture0(Index).BackColor
Curcolor = Picture11.BackColor
Curbkcolor = Picture10.BackColor
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -