📄 imagelist.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4050
ClientLeft = 60
ClientTop = 345
ClientWidth = 4245
LinkTopic = "Form1"
ScaleHeight = 4050
ScaleWidth = 4245
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 495
Left = 1920
TabIndex = 8
Top = 3360
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1920
TabIndex = 7
Top = 2640
Width = 1215
End
Begin VB.PictureBox Picture3
Height = 1215
Left = 240
ScaleHeight = 1155
ScaleWidth = 1275
TabIndex = 4
Top = 2640
Width = 1335
End
Begin VB.PictureBox Picture2
Height = 1215
Left = 2280
ScaleHeight = 1155
ScaleWidth = 1515
TabIndex = 3
Top = 480
Width = 1575
End
Begin VB.PictureBox Picture1
Height = 1215
Left = 120
ScaleHeight = 1155
ScaleWidth = 1395
TabIndex = 2
Top = 480
Width = 1455
End
Begin VB.ComboBox Combo2
Height = 300
Left = 2400
TabIndex = 1
Text = "Combo2"
Top = 1920
Width = 1215
End
Begin VB.ComboBox Combo1
Height = 300
Left = 240
TabIndex = 0
Text = "Combo1"
Top = 1920
Width = 1215
End
Begin MSComctlLib.ImageList ImageList1
Left = 1320
Top = 1080
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 48
ImageHeight = 48
MaskColor = 16777215
_Version = 393216
End
Begin VB.Label Label2
Caption = "Label2"
Height = 495
Left = 2280
TabIndex = 6
Top = 120
Width = 2535
End
Begin VB.Label Label1
Caption = "Label1"
Height = 495
Left = 120
TabIndex = 5
Top = 120
Width = 2415
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Set Picture1.Picture = ImageList1.ListImages(Combo1.ListIndex + 1).ExtractIcon
End Sub
Private Sub Combo2_Click()
Set Picture2.Picture = ImageList1.ListImages(Combo2.ListIndex + 1).ExtractIcon
End Sub
Private Sub Command1_Click()
Set Picture3.Picture = ImageList1.Overlay(Combo1.ListIndex + 1, Combo2.ListIndex + 1)
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
Dim x As ListImage
Set x = ImageList1.ListImages.Add(, , LoadPicture("..\7-11\1.bmp"))
Set x = ImageList1.ListImages.Add(, , LoadPicture("..\7-11\2.bmp"))
With Combo1
.AddItem "n2k"
.AddItem "tunes"
.ListIndex = 0
End With
With Combo2
.AddItem "n2k"
.AddItem "tunes"
.ListIndex = 1
End With
Picture1.BackColor = vbWhite
Picture2.BackColor = vbWhite
Picture3.BackColor = vbWhite
Label1.Caption = "选择图片框1显示的图片:"
Label2.Caption = "选择图片框2显示的图片:"
Command1.Caption = "两图重叠"
Command2.Caption = "退出"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -