?? frmmain.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm frmMain
BackColor = &H00FF8080&
Caption = "LDOTESTSYSTEM"
ClientHeight = 3195
ClientLeft = 165
ClientTop = 825
ClientWidth = 4680
LinkTopic = "MDIForm1"
Picture = "frmMain.frx":0000
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
Begin MSComctlLib.Toolbar tbToolBar
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 1
Top = 0
Width = 4680
_ExtentX = 8255
_ExtentY = 741
ButtonWidth = 609
ButtonHeight = 582
Appearance = 1
ImageList = "imlToolbarIcons"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 5
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "新建"
Object.ToolTipText = "新建"
ImageKey = "New"
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "打開"
Object.ToolTipText = "打開"
ImageKey = "Open"
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "保存"
Object.ToolTipText = "保存"
ImageKey = "Save"
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "幫助"
Object.ToolTipText = "幫助"
ImageKey = "Help"
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "幫助這是什么"
Object.ToolTipText = "幫助這是什么"
ImageKey = "Help What's This"
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar sbStatusBar
Align = 2 'Align Bottom
Height = 270
Left = 0
TabIndex = 0
Top = 2925
Width = 4680
_ExtentX = 8255
_ExtentY = 476
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 2593
Text = "狀態(tài)"
TextSave = "狀態(tài)"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
AutoSize = 2
TextSave = "2007-9-28"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
AutoSize = 2
TextSave = "9:26"
EndProperty
EndProperty
End
Begin MSComDlg.CommonDialog dlgCommonDialog
Left = 240
Top = 480
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 1320
Top = 600
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 5
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0974
Key = "New"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0A86
Key = "Open"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0B98
Key = "Save"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0CAA
Key = "Help"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":0DBC
Key = "Help What's This"
EndProperty
EndProperty
End
Begin VB.Menu mnuFile
Caption = "文件(&F)"
Begin VB.Menu mnuFileNew
Caption = "新建(&N)"
Shortcut = ^N
End
Begin VB.Menu mnuFileOpen
Caption = "打開(&O)..."
Shortcut = ^O
End
Begin VB.Menu mnuFileSave
Caption = "保存(&S)"
End
Begin VB.Menu mnuFileClose
Caption = "關閉窗口(&C)"
End
Begin VB.Menu mnuFileExit
Caption = "退出(&X)"
End
End
Begin VB.Menu mnuconnect
Caption = "連機測試調(diào)校"
Begin VB.Menu mnuconnectkeithley2400
Caption = "KEITHLEY 2400"
End
Begin VB.Menu mnuconnechp34401a
Caption = "HP-34401A"
End
Begin VB.Menu mnuconnechp34970a
Caption = "HP-34970A"
End
Begin VB.Menu mnuconnechp6611c
Caption = "HP-6611C"
End
End
Begin VB.Menu mnutest
Caption = "LDO測試"
Begin VB.Menu mnuldotest
Caption = "LDO參數(shù)測試"
End
End
Begin VB.Menu mnuHelp
Caption = "幫助(&H)"
Begin VB.Menu mnuHelpContents
Caption = "目錄(&C)"
End
Begin VB.Menu mnuHelpBar0
Caption = "-"
End
Begin VB.Menu mnuHelpAbout
Caption = "關于(&A) "
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
Private Sub MDIForm_Load()
Me.Left = GetSetting(App.title, "Settings", "MainLeft", 1000)
Me.Top = GetSetting(App.title, "Settings", "MainTop", 1000)
Me.Width = GetSetting(App.title, "Settings", "MainWidth", 6500)
Me.Height = GetSetting(App.title, "Settings", "MainHeight", 6500)
End Sub
Private Sub MDIForm_Unload(Cancel As Integer)
If Me.WindowState <> vbMinimized Then
SaveSetting App.title, "Settings", "MainLeft", Me.Left
SaveSetting App.title, "Settings", "MainTop", Me.Top
SaveSetting App.title, "Settings", "MainWidth", Me.Width
SaveSetting App.title, "Settings", "MainHeight", Me.Height
End If
End Sub
Private Sub mnuconnechp34401a_Click()
Unload mnukeithley2400 '先關閉所有的窗口
Unload mnuhp34401a
Unload mnuhp34970a
Unload mnuhp6611c
Unload mnuldoparametertest
mnuhp34401a.Show '顯示
End Sub
Private Sub mnuconnechp34970a_Click()
Unload mnukeithley2400 '先關閉所有的窗口
Unload mnuhp34401a
Unload mnuhp34970a
Unload mnuhp6611c
Unload mnuldoparametertest
mnuhp34970a.Show '顯示
End Sub
Private Sub mnuconnechp6611c_Click()
Unload mnukeithley2400 '先關閉所有的窗口
Unload mnuhp34401a
Unload mnuhp34970a
Unload mnuhp6611c
Unload mnuldoparametertest
mnuhp6611c.Show '顯示
End Sub
Private Sub mnuconnectkeithley2400_Click()
Unload mnukeithley2400 '先關閉所有的窗口
Unload mnuhp34401a
Unload mnuhp34970a
Unload mnuhp6611c
Unload mnuldoparametertest
mnukeithley2400.Show '顯示
End Sub
Private Sub mnuldotest_Click()
Unload mnukeithley2400 '先關閉所有的窗口
Unload mnuhp34401a
Unload mnuhp34970a
Unload mnuhp6611c
Unload mnuldoparametertest
mnuldoparametertest.Show '顯示
End Sub
Private Sub tbToolBar_ButtonClick(ByVal Button As MSComCtlLib.Button)
On Error Resume Next
Select Case Button.Key
Case "新建"
Case "打開"
mnuFileOpen_Click
Case "保存"
mnuFileSave_Click
Case "幫助"
frmAbout.Show vbModal, Me
Case "幫助這是什么"
'應做:添加 '幫助這是什么' 按鈕代碼。
MsgBox "添加 '幫助這是什么' 按鈕代碼。"
End Select
End Sub
Private Sub mnuHelpAbout_Click()
frmAbout.Show vbModal, Me
End Sub
Private Sub mnuHelpContents_Click()
Dim nRet As Integer
'如果這個工程沒有幫助文件,顯示消息給用戶
'可以在“工程屬性”對話框中為應用程序設置幫助文件
If Len(App.HelpFile) = 0 Then
MsgBox "無法顯示幫助目錄,該工程沒有相關聯(lián)的幫助。", vbInformation, Me.Caption
Else
On Error Resume Next
nRet = OSWinHelp(Me.hwnd, App.HelpFile, 3, 0)
If Err Then
MsgBox Err.Description
End If
End If
End Sub
Private Sub mnuFileExit_Click()
'卸載窗體
Unload Me
End Sub
Private Sub mnuFileClose_Click()
Unload mnukeithley2400 '關閉所有的窗口
Unload mnuhp34401a
Unload mnuhp34970a
Unload mnuhp6611c
Unload mnuldoparametertest
End Sub
Private Sub mnuFileSave_Click()
Dim sFile As String
With dlgCommonDialog
.DialogTitle = "保存"
.CancelError = False
'ToDo: 設置 common dialog 控件的標志和屬性
.Filter = "所有文件 (*.*)|*.*"
.ShowSave
If Len(.FileName) = 0 Then
Exit Sub
End If
sFile = .FileName
End With
End Sub
Private Sub mnuFileOpen_Click()
Dim sFile As String
With dlgCommonDialog
.DialogTitle = "打開"
.CancelError = False
'ToDo: 設置 common dialog 控件的標志和屬性
.Filter = "所有文件 (*.*)|*.*"
.ShowOpen
If Len(.FileName) = 0 Then
Exit Sub
End If
End With
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -