📄 mysetup.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Mysetup
Caption = "控制面板"
ClientHeight = 2790
ClientLeft = 60
ClientTop = 345
ClientWidth = 4155
LinkTopic = "Form1"
ScaleHeight = 2790
ScaleWidth = 4155
StartUpPosition = 3 '窗口缺省
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 375
Left = 0
TabIndex = 3
Top = 2415
Width = 4155
_ExtentX = 7329
_ExtentY = 661
Style = 1
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 1
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
EndProperty
EndProperty
End
Begin MSComctlLib.ListView ListView1
Height = 2295
Left = 240
TabIndex = 2
Top = 0
Width = 3015
_ExtentX = 5318
_ExtentY = 4048
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
Icons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin VB.OptionButton Option2
Caption = "不排"
Height = 735
Left = 3480
TabIndex = 1
Top = 960
Width = 975
End
Begin VB.OptionButton Option1
Caption = "排序"
Height = 615
Left = 3480
TabIndex = 0
Top = 0
Width = 735
End
Begin MSComctlLib.ImageList ImageList1
Left = 4200
Top = 2520
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 4
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Mysetup.frx":0000
Key = "mymouse"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Mysetup.frx":0452
Key = "mykeys"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Mysetup.frx":08A4
Key = "mymonitor"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Mysetup.frx":0CF6
Key = "mycdroom"
EndProperty
EndProperty
End
End
Attribute VB_Name = "Mysetup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim i As Integer
Dim mylistitem As ListItem
Set mylistitem = ListView1.ListItems.Add(, "mymouse", "设置鼠标", 1)
Set mylistitem = ListView1.ListItems.Add(, "mykey", "设置键盘", 2)
Set mylistitem = ListView1.ListItems.Add(, "mymonitor", "显示器", 3)
Set mylistitem = ListView1.ListItems.Add(, "mycdroom", "光驱", 4)
StatusBar1.SimpleText = "共" & ListView1.ListItems.Count & "对象"
End Sub
Private Sub Form_Resize()
ListView1.Top = Mysetup.ScaleTop + 50
ListView1.Left = Mysetup.ScaleLeft + 50
If Mysetup.Height >= 50 + StatusBar1.Height Then
ListView1.Height = Mysetup.ScaleHeight - 50 - StatusBar1.Height
End If
Option1.Top = Mysetup.ScaleTop + 250
Option1.Left = Mysetup.ScaleWidth - 100 - Option1.Width
Option2.Top = Option1.Top + Option1.Height + 200
Option2.Left = Option1.Left
If Mysetup.ScaleWidth >= 100 + Option1.Width + 50 Then
ListView1.Width = Mysetup.ScaleWidth - 100 - Option1.Width - 50
End If
End Sub
Private Sub ListView1_Click()
Select Case ListView1.SelectedItem.Key
Case "mymouse"
StatusBar1.SimpleText = "更改鼠标设置"
Case "mymonitor"
StatusBar1.SimpleText = "更改显示器设置"
Case "mykeys"
StatusBar1.SimpleText = "配置你的键盘"
Case "mycdroom"
StatusBar1.SimpleText = "改变光驱设置"
End Select
End Sub
Private Sub ListView1_BeforeLabelEdit(Cancel As Integer)
Cancel = True
End Sub
Private Sub Option1_Click()
ListView1.Arrange = lvwAutoTop
End Sub
Private Sub Option2_Click()
ListView1.Arrange = lvwNone
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -