📄 frmsort.frm
字号:
VERSION 5.00
Begin VB.Form frmSort
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Dialog
Caption = "Sort list?"
ClientHeight = 3390
ClientLeft = 45
ClientTop = 330
ClientWidth = 3795
Icon = "frmSort.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3390
ScaleWidth = 3795
ShowInTaskbar = 0 'False
Begin VB.CheckBox Check6
Height = 255
Left = 0
TabIndex = 14
Top = 2040
Visible = 0 'False
Width = 200
End
Begin VB.CheckBox test
Caption = "Check6"
Height = 255
Left = 2280
TabIndex = 13
Top = 360
Value = 1 'Checked
Visible = 0 'False
Width = 135
End
Begin VB.CheckBox Check5
Height = 255
Left = 0
TabIndex = 12
Top = 1680
Visible = 0 'False
Width = 200
End
Begin VB.CheckBox Check4
Height = 255
Left = 0
TabIndex = 11
Top = 1320
Visible = 0 'False
Width = 200
End
Begin VB.CheckBox Check3
Height = 255
Left = 0
TabIndex = 10
Top = 960
Visible = 0 'False
Width = 200
End
Begin VB.CheckBox Check2
Height = 255
Left = 0
TabIndex = 9
Top = 600
Visible = 0 'False
Width = 200
End
Begin VB.CheckBox Check1
Height = 255
Left = 0
TabIndex = 8
Top = 240
Visible = 0 'False
Width = 200
End
Begin VB.Frame Fra
Caption = "Direction <- -> ?"
Enabled = 0 'False
Height = 735
Left = 240
TabIndex = 0
Top = 2520
Width = 3255
Begin VB.CommandButton Command2
BackColor = &H00E0E0E0&
Caption = "&Descending"
Height = 255
Left = 1920
Style = 1 'Graphical
TabIndex = 2
Top = 300
Width = 1095
End
Begin VB.CommandButton Command1
BackColor = &H00E0E0E0&
Caption = "&Ascending"
Height = 255
Left = 240
Style = 1 'Graphical
TabIndex = 1
Top = 300
Width = 1095
End
End
Begin VB.Line Line7
X1 = 1550
X2 = 2040
Y1 = 2160
Y2 = 2160
End
Begin VB.Label Label6
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "By S&ponsor"
ForeColor = &H80000008&
Height = 255
Left = 240
MouseIcon = "frmSort.frx":0442
MousePointer = 99 'Custom
TabIndex = 15
Top = 2040
Width = 1300
End
Begin VB.Line Line2
X1 = 2040
X2 = 2040
Y1 = 360
Y2 = 2640
End
Begin VB.Line Line6
X1 = 1550
X2 = 2040
Y1 = 1800
Y2 = 1800
End
Begin VB.Line Line5
X1 = 1550
X2 = 2040
Y1 = 1440
Y2 = 1440
End
Begin VB.Line Line4
X1 = 1550
X2 = 2040
Y1 = 1080
Y2 = 1080
End
Begin VB.Line Line3
X1 = 1550
X2 = 2040
Y1 = 720
Y2 = 720
End
Begin VB.Label Label5
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "By &Nationality"
ForeColor = &H80000008&
Height = 255
Left = 240
MouseIcon = "frmSort.frx":074C
MousePointer = 99 'Custom
TabIndex = 7
Top = 1680
Width = 1300
End
Begin VB.Label Label4
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "By se&xe"
ForeColor = &H80000008&
Height = 255
Left = 240
MouseIcon = "frmSort.frx":0A56
MousePointer = 99 'Custom
TabIndex = 6
Top = 1320
Width = 1300
End
Begin VB.Label Label3
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "By &Surname"
ForeColor = &H80000008&
Height = 255
Left = 240
MouseIcon = "frmSort.frx":0D60
MousePointer = 99 'Custom
TabIndex = 5
Top = 960
Width = 1300
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "By &Name"
ForeColor = &H80000008&
Height = 255
Left = 240
MouseIcon = "frmSort.frx":106A
MousePointer = 99 'Custom
TabIndex = 4
Top = 600
Width = 1300
End
Begin VB.Line Line1
X1 = 1550
X2 = 2040
Y1 = 360
Y2 = 360
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "By &Rank"
ForeColor = &H80000008&
Height = 255
Left = 240
MouseIcon = "frmSort.frx":1374
MousePointer = 99 'Custom
TabIndex = 3
Top = 240
Width = 1300
End
End
Attribute VB_Name = "frmSort"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Select Case test = 1
Case Check1 = 1
full.grdOther.ColSel = 2
full.grdOther.Col = 2
full.grdOther.sort = flexSortNumericAscending
Case Check2 = 1
full.grdOther.ColSel = 0
full.grdOther.Col = 0
full.grdOther.sort = flexSortStringAscending
Case Check3 = 1
full.grdOther.ColSel = 1
full.grdOther.Col = 1
full.grdOther.sort = flexSortStringAscending
Case Check4 = 1
full.grdOther.ColSel = 3
full.grdOther.Col = 3
full.grdOther.sort = flexSortStringAscending
Case Check5 = 1
full.grdOther.ColSel = 5
full.grdOther.Col = 5
full.grdOther.sort = flexSortStringAscending
Case Check6 = 1
full.grdOther.ColSel = 4
full.grdOther.Col = 4
full.grdOther.sort = flexSortStringAscending
End Select
End Sub
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.FontBold = True
Command2.FontBold = False
End Sub
Private Sub Command2_Click()
Select Case test = 1
Case Check1 = 1
full.grdOther.ColSel = 2
full.grdOther.Col = 2
full.grdOther.sort = flexSortNumericDescending
Case Check2 = 1
full.grdOther.ColSel = 0
full.grdOther.Col = 0
full.grdOther.sort = flexSortStringDescending
Case Check3 = 1
full.grdOther.ColSel = 1
full.grdOther.Col = 1
full.grdOther.sort = flexSortStringDescending
Case Check4 = 1
full.grdOther.ColSel = 3
full.grdOther.Col = 3
full.grdOther.sort = flexSortStringDescending
Case Check5 = 1
full.grdOther.ColSel = 5
full.grdOther.Col = 5
full.grdOther.sort = flexSortStringDescending
Case Check6 = 1
full.grdOther.ColSel = 4
full.grdOther.Col = 4
full.grdOther.sort = flexSortStringDescending
End Select
End Sub
Private Sub Command2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.FontBold = False
Command2.FontBold = True
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.FontBold = False
Command2.FontBold = False
label1.FontBold = False
Label2.FontBold = False
Label3.FontBold = False
Label4.FontBold = False
Label5.FontBold = False
Label6.FontBold = False
End Sub
Private Sub Form_Terminate()
full.Sort_check = 0
End Sub
Private Sub Form_Unload(CANCEL As Integer)
full.Sort_check = 0
End Sub
Private Sub Fra_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.FontBold = False
Command2.FontBold = False
Label6.FontBold = False
End Sub
Private Sub Label1_Click()
Check1 = 1
Check2 = 0
Check3 = 0
Check4 = 0
Check5 = 0
Check6 = 0
Fra.Enabled = True
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
label1.FontBold = True
Label2.FontBold = False
End Sub
Private Sub Label2_Click()
Check1 = 0
Check2 = 1
Check3 = 0
Check4 = 0
Check5 = 0
Check6 = 0
Fra.Enabled = True
End Sub
Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
label1.FontBold = False
Label2.FontBold = True
Label3.FontBold = False
End Sub
Private Sub Label3_Click()
Check1 = 0
Check2 = 0
Check3 = 1
Check4 = 0
Check5 = 0
Check6 = 0
Fra.Enabled = True
End Sub
Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label2.FontBold = False
Label3.FontBold = True
Label4.FontBold = False
End Sub
Private Sub Label4_Click()
Check1 = 0
Check2 = 0
Check3 = 0
Check4 = 1
Check5 = 0
Check6 = 0
Fra.Enabled = True
End Sub
Private Sub Label4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.FontBold = False
Label4.FontBold = True
Label5.FontBold = False
End Sub
Private Sub Label5_Click()
Check1 = 0
Check2 = 0
Check3 = 0
Check4 = 0
Check5 = 1
Check6 = 0
Fra.Enabled = True
End Sub
Private Sub Label5_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label4.FontBold = False
Label5.FontBold = True
Label6.FontBold = False
End Sub
Private Sub Label6_Click()
Check1 = 0
Check2 = 0
Check3 = 0
Check4 = 0
Check5 = 0
Check6 = 1
Fra.Enabled = True
End Sub
Private Sub Label6_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label5.FontBold = False
Label6.FontBold = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -