📄 frmsetup.frm
字号:
VERSION 5.00
Begin VB.Form FrmSetup
BorderStyle = 1 'Fixed Single
Caption = "Setup"
ClientHeight = 4650
ClientLeft = 45
ClientTop = 330
ClientWidth = 3990
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4650
ScaleWidth = 3990
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 2400
TabIndex = 3
Top = 3960
Width = 1215
End
Begin VB.ListBox Lshide
Height = 2985
Left = 2400
TabIndex = 2
Top = 720
Width = 1335
End
Begin VB.ListBox Lsshow
Height = 2985
Left = 240
TabIndex = 1
Top = 720
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 495
Left = 480
TabIndex = 0
Top = 3960
Width = 1215
End
Begin VB.Label Label4
Caption = "隐藏条目"
Height = 375
Left = 2400
TabIndex = 7
Top = 240
Width = 1335
End
Begin VB.Label Label3
Caption = "显示条目"
Height = 375
Left = 240
TabIndex = 6
Top = 240
Width = 1455
End
Begin VB.Label Lbdec
Caption = ">"
BeginProperty Font
Name = "MS Sans Serif"
Size = 24
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 5
Top = 2280
Width = 495
End
Begin VB.Label Lbadd
Caption = "<"
BeginProperty Font
Name = "MS Sans Serif"
Size = 24
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 4
Top = 1440
Width = 495
End
End
Attribute VB_Name = "FrmSetup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i, j As Integer
For i = 0 To FrmMain.DBGA.Columns.Count - 1
FrmMain.DBGA.Columns(i).Visible = True
For j = 0 To Lshide.ListCount - 1
If FrmMain.DBGA.Columns(i).Caption = Lshide.List(j) Then
FrmMain.DBGA.Columns(i).Visible = False
GoTo xt:
End If
Next j
xt:
Next i
FrmMain.SetFocus
FrmMain.Enabled = True
FrmMain.cuTabCh = False
Me.Hide
End Sub
Private Sub Command2_Click()
FrmMain.Enabled = True
Me.Hide
End Sub
Private Sub Form_Activate()
Dim a As Integer
If FrmMain.cuTabCh Then
Lsshow.Clear
Lshide.Clear
a = FrmMain.DBGA.Columns.Count
If a > 0 Then
For i = 0 To a - 1
Lsshow.AddItem (FrmMain.DBGA.Columns(i).Caption)
Next i
End If
End If
End Sub
Private Sub Lbadd_Click()
If Lshide.Text <> "" Then
Lsshow.AddItem (Lshide.Text)
Lshide.RemoveItem (Lshide.ListIndex)
End If
End Sub
Private Sub Lbdec_Click()
If Lsshow.Text <> "" Then
Lshide.AddItem (Lsshow.Text)
Lsshow.RemoveItem (Lsshow.ListIndex)
End If
End Sub
Private Sub Lsshow_DblClick()
Lshide.AddItem (Lsshow.Text)
Lsshow.RemoveItem (Lsshow.ListIndex)
End Sub
Private Sub Lshide_DblClick()
Lsshow.AddItem (Lshide.Text)
Lshide.RemoveItem (Lshide.ListIndex)
End Sub
Private Sub Form_Unload(Cancel As Integer)
FrmMain.Enabled = True
FrmMain.SetFocus
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -