📄 frmmain.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{02B5E320-7292-11CF-93D5-0020AF99504A}#1.0#0"; "MSCHART.OCX"
Begin VB.Form frmMain
Caption = "IsVBDynPlot"
ClientHeight = 4185
ClientLeft = 165
ClientTop = 735
ClientWidth = 6975
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
ScaleHeight = 4185
ScaleWidth = 6975
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox Picture1
DragMode = 1 'Automatic
Height = 135
Left = 0
MousePointer = 7 'Size N S
ScaleHeight = 75
ScaleWidth = 6435
TabIndex = 4
Top = 2760
Width = 6495
End
Begin VB.Timer Timer1
Interval = 1000
Left = 6480
Top = 600
End
Begin MSChartLib.MSChart MSChart1
Height = 1695
Left = 120
OleObjectBlob = "frmMain.frx":0442
TabIndex = 2
Top = 2040
Width = 6735
End
Begin MSComctlLib.Toolbar tbToolBar
Align = 1 'Align Top
Height = 630
Left = 0
TabIndex = 1
Top = 0
Width = 6975
_ExtentX = 12303
_ExtentY = 1111
ButtonWidth = 487
ButtonHeight = 466
Appearance = 1
ImageList = "imlToolbarIcons"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 11
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Open"
Object.ToolTipText = "Open"
ImageKey = "Open"
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Connect"
ImageKey = "Connect"
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Disconnect"
ImageKey = "Disconnect"
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Enabled = 0 'False
Key = "Print"
Object.ToolTipText = "Print"
ImageKey = "Print"
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Enabled = 0 'False
Style = 3
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Enabled = 0 'False
Key = "Cut"
Object.ToolTipText = "Cut"
ImageKey = "Cut"
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Enabled = 0 'False
Key = "Copy"
Object.ToolTipText = "Copy"
ImageKey = "Copy"
EndProperty
BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
Enabled = 0 'False
Key = "Paste"
Object.ToolTipText = "Paste"
ImageKey = "Paste"
EndProperty
BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar sbStatusBar
Align = 2 'Align Bottom
Height = 270
Left = 0
TabIndex = 0
Top = 3915
Width = 6975
_ExtentX = 12303
_ExtentY = 476
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 6668
Text = "Status"
TextSave = "Status"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
AutoSize = 2
TextSave = "5/7/99"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
AutoSize = 2
TextSave = "11:09 AM"
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 6360
Top = 1080
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 9
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":28F4
Key = "New"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":2A06
Key = "Open"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":2B18
Key = "Save"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":2C2A
Key = "Print"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":2D3C
Key = "Cut"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":2E4E
Key = "Copy"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":2F60
Key = "Paste"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":3072
Key = "Disconnect"
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmMain.frx":35C4
Key = "Connect"
EndProperty
EndProperty
End
Begin MSComctlLib.ListView ListView1
Height = 1815
Left = 0
TabIndex = 3
Top = 0
Width = 6615
_ExtentX = 11668
_ExtentY = 3201
View = 3
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin VB.Menu mnuFile
Caption = "&File"
Begin VB.Menu mnuConnect
Caption = "Connect"
End
Begin VB.Menu mnuDisconnect
Caption = "Disconnect"
End
Begin VB.Menu mnuFileBar1
Caption = "-"
End
Begin VB.Menu mnuFileOpen
Caption = "&Open..."
End
Begin VB.Menu mnuFileClose
Caption = "&Close"
End
Begin VB.Menu mnuFileBar0
Caption = "-"
End
Begin VB.Menu mnuFilePageSetup
Caption = "Page Set&up..."
End
Begin VB.Menu mnuFilePrintPreview
Caption = "Print Pre&view"
End
Begin VB.Menu mnuFilePrint
Caption = "&Print..."
End
Begin VB.Menu mnuFileBar3
Caption = "-"
End
Begin VB.Menu mnuFileBar5
Caption = "-"
Visible = 0 'False
End
Begin VB.Menu mnuFileExit
Caption = "E&xit"
End
End
Begin VB.Menu mnuView
Caption = "&View"
Begin VB.Menu mnuViewToolbar
Caption = "&Toolbar"
Checked = -1 'True
End
Begin VB.Menu mnuViewStatusBar
Caption = "Status &Bar"
Checked = -1 'True
End
End
Begin VB.Menu mnuHelp
Caption = "&Help"
Begin VB.Menu mnuHelpContents
Caption = "&Contents"
End
Begin VB.Menu mnuHelpSearchForHelpOn
Caption = "&Search For Help On..."
End
Begin VB.Menu mnuHelpBar0
Caption = "-"
End
Begin VB.Menu mnuHelpAbout
Caption = "&About "
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'///////////////////////////////////////////////////////////////////////////
'
' OPC DynPlot VB Client: frmMain.frm
' (Source File)
'
'///////////////////////////////////////////////////////////////////////////
'
' Author: Raphael Imhof
' Initial Date: 11/04/98
' $Workfile: frmMain.frm $
' $Revision: 1 $
' $Date: 7/27/99 5:12p $
' Target System: Microsoft Windows NT 4.0
' Environment: Visual Basic 6.0 / OPC DataAccess 2.0
' Remarks:
'
'///////////////////////////////////////////////////////////////////////////
'
' Description: implementation of the main form.
'
'
'///////////////////////////////////////////////////////////////////////////
'
' History of Changes (Please remove very old comments and blank lines!)
' $Log: /IDK/OPCServer/clients/VB/DynPlot/frmMain.frm $
'
' 1 7/27/99 5:12p Imhof
'
' 1 7/27/99 4:37p Imhof
'
' 8 5/07/99 11:14a Imhof
' Fixed form reseize problem when minimized.
'
' 7 4/13/99 1:34p Imhof
' Set a bPointValid to false in the disconnect to avoid a crash in the
' timer routine.
'
' 6 1/23/99 4:35p Imhof
' If OPCDaAuto.DLL is not installed get better error.
'
' 5 1/20/99 2:36p Imhof
' Header: history update with new format
'
'
' $Nokeywords:$ (To avoid useless search while checking in.)
'///////////////////////////////////////////////////////////////////////////
' Copyright (C) 1999, Siemens Building Technologies, Inc. Landis Division
'
' SIEMENS BUILDING TECHNOLOGIES, INC. IS PROVIDING THE FOLLOWING EXAMPLES
' OF CODE AS SAMPLE ONLY.
' SIEMENS BUILDING TECHNOLOGIES, INC. MAKES NO REPRESENTATIONS OR WARRANTIES
' OF ANY KIND WITH RESPECT TO THE VALIDTY OF THE CODES OR DESIRED RESULTS
' AND DISCLAIMS ALL SUCH REPRESENTATIONS AND WARRANTIES, INCLUDING FOR EXAMPLE,
' WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
' SIEMENS BUILIDNG TECHNOLOGIES, INC. DOES NOT REPRESENT OR WARRANT THAT
' THE FOLLOWING CODE SAMPLES ARE ACCURATE, VALID, COMPLETE OR CURRENT.
'
'///////////////////////////////////////////////////////////////////////////
Option Explicit
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
Public WithEvents InfoSvr As OPCServer
Attribute InfoSvr.VB_VarHelpID = -1
Public bConnected As Boolean
Private oGroups As OPCGroups
Private WithEvents oGroup As OPCGroup
Attribute oGroup.VB_VarHelpID = -1
Private GroupAsyncReadTransactionID As Long
Private oItems As OPCItems
Private oPoint As OPCItem
Private bPointValid As Boolean
Private Index As Integer
Private Sub Form_Load()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -