📄 trend.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 = "IsVBTrend"
ClientHeight = 5505
ClientLeft = 165
ClientTop = 735
ClientWidth = 7275
Icon = "trend.frx":0000
LinkTopic = "Form1"
ScaleHeight = 5505
ScaleWidth = 7275
StartUpPosition = 3 'Windows Default
Begin MSComctlLib.Toolbar tbToolBar
Align = 1 'Align Top
Height = 630
Left = 0
TabIndex = 1
Top = 0
Width = 7275
_ExtentX = 12832
_ExtentY = 1111
ButtonWidth = 487
ButtonHeight = 466
Appearance = 1
ImageList = "imlToolbarIcons"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 10
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"
Object.ToolTipText = "Connect"
ImageKey = "Connect"
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Disconnect"
Object.ToolTipText = "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}
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
EndProperty
End
Begin VB.PictureBox Picture1
DragMode = 1 'Automatic
Height = 135
Left = 0
MousePointer = 7 'Size N S
ScaleHeight = 75
ScaleWidth = 6435
TabIndex = 4
Top = 2400
Width = 6495
End
Begin MSComctlLib.ListView ListView1
Height = 1812
Left = 0
TabIndex = 3
Top = 360
Width = 6612
_ExtentX = 11668
_ExtentY = 3201
View = 3
SortOrder = -1 'True
Sorted = -1 'True
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin MSChartLib.MSChart MSChart1
Height = 1455
Left = 0
OleObjectBlob = "trend.frx":0442
TabIndex = 2
Top = 1920
Width = 6615
End
Begin MSComctlLib.StatusBar sbStatusBar
Align = 2 'Align Bottom
Height = 270
Left = 0
TabIndex = 0
Top = 5235
Width = 7275
_ExtentX = 12832
_ExtentY = 476
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 7197
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:13 AM"
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 2760
Top = 4080
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 15
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":27A8
Key = "New"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":28BA
Key = "Open"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":29CC
Key = "Save"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":2ADE
Key = "Print"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":2BF0
Key = "Cut"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":2D02
Key = "Copy"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":2E14
Key = "Paste"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":2F26
Key = "Bold"
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":3038
Key = "Italic"
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":314A
Key = "Underline"
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":325C
Key = "Align Left"
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":336E
Key = "Center"
EndProperty
BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":3480
Key = "Align Right"
EndProperty
BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":3592
Key = "Connect"
EndProperty
BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "trend.frx":3AE4
Key = "Disconnect"
EndProperty
EndProperty
End
Begin VB.Menu mnuFile
Caption = "&Trend"
Begin VB.Menu mnuConnect
Caption = "&Connect"
End
Begin VB.Menu mnuDisconnect
Caption = "&Disconnect"
Enabled = 0 'False
End
Begin VB.Menu mnuFileBar1
Caption = "-"
End
Begin VB.Menu mnuFileOpen
Caption = "&Open..."
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 mnuFileBar4
Caption = "-"
End
Begin VB.Menu mnuFileMRU
Caption = ""
Index = 1
Visible = 0 'False
End
Begin VB.Menu mnuFileMRU
Caption = ""
Index = 2
Visible = 0 'False
End
Begin VB.Menu mnuFileMRU
Caption = ""
Index = 3
Visible = 0 'False
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 Trend VB Client: trend.frm
' (Source File)
'
'///////////////////////////////////////////////////////////////////////////
'
' Author: Raphael Imhof
' Initial Date: 11/04/98
' $Workfile: trend.frm $
' $Revision: 1 $
' $Date: 7/27/99 5:13p $
' 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/Trend/trend.frm $
'
' 1 7/27/99 5:13p Imhof
'
' 1 7/27/99 4:37p Imhof
'
' 13 5/07/99 11:16a Imhof
' Fixed form reseize problem when minimized
'
' 12 1/25/99 12:30p Imhof
'
' 11 1/23/99 4:39p Imhof
' If OPC Automation DLL is not installed we get an error.
'
' 10 1/23/99 11:34a Imhof
' Removed component reference.
'
' 9 1/20/99 3:09p Imhof
' Header: updated log
'
' 6 1/15/99 10:43a Imhof
' Updated headers and corrected time stamp problem
'
'
' $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.
'
'///////////////////////////////////////////////////////////////////////////
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 Sub Form_Load()
bConnected = False
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)
ListView1.ColumnHeaders.Add , , "Time", ListView1.Width / 5
ListView1.ColumnHeaders.Add , , "Value", ListView1.Width / 5 ', lvwColumnCenter
ListView1.ColumnHeaders.Add , , "Priority", ListView1.Width / 5
ListView1.ColumnHeaders.Add , , "Alarm", ListView1.Width / 5
ListView1.ColumnHeaders.Add , , "Dataloss", ListView1.Width / 5
End Sub
Private Sub Form_Resize()
Dim MyClientHeight As Single
MyClientHeight = ScaleHeight - sbStatusBar.Height - tbToolBar.Height
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -