📄 调色板.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "调色板演示"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.HScrollBar HScroll1
Height = 495
Index = 2
LargeChange = 5
Left = 960
Max = 255
TabIndex = 6
Top = 2160
Width = 2535
End
Begin VB.HScrollBar HScroll1
Height = 495
Index = 1
LargeChange = 5
Left = 960
Max = 255
TabIndex = 5
Top = 1440
Width = 2535
End
Begin VB.HScrollBar HScroll1
Height = 495
Index = 0
LargeChange = 5
Left = 960
Max = 255
TabIndex = 4
Top = 840
Width = 2535
End
Begin VB.Label Label5
Caption = "Label5"
Height = 495
Index = 2
Left = 3600
TabIndex = 9
Top = 2160
Width = 855
End
Begin VB.Label Label5
Caption = "Label5"
Height = 495
Index = 1
Left = 3600
TabIndex = 8
Top = 1440
Width = 855
End
Begin VB.Label Label5
Caption = "Label5"
Height = 495
Index = 0
Left = 3720
TabIndex = 7
Top = 840
Width = 855
End
Begin VB.Label Label4
Caption = "蓝色"
Height = 495
Left = 120
TabIndex = 3
Top = 2160
Width = 735
End
Begin VB.Label Label3
Caption = "绿色"
Height = 375
Left = 120
TabIndex = 2
Top = 1560
Width = 735
End
Begin VB.Label Label2
Caption = "红色"
Height = 375
Left = 120
TabIndex = 1
Top = 960
Width = 615
End
Begin VB.Label Label1
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
Height = 495
Left = 480
TabIndex = 0
Top = 120
Width = 3855
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub HScroll1_Change(Index As Integer)
Label5(Index).Caption = HScroll1(Index).Value
Label1.BackColor = RGB(HScroll1(0).Value, HScroll1(1).Value, HScroll1(2).Value)
End Sub
Private Sub HScroll1_Scroll(Index As Integer)
HScroll1_Change (Index)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -