?? opcgeneral.pag
字號:
VERSION 5.00
Begin VB.PropertyPage OPCGeneral
Caption = "OPC設置"
ClientHeight = 2472
ClientLeft = 0
ClientTop = 0
ClientWidth = 6576
LockControls = -1 'True
PaletteMode = 0 'Halftone
ScaleHeight = 2472
ScaleWidth = 6576
Begin VB.CheckBox chkAutoLink
Caption = "自動連接(&A)"
Height = 255
Left = 240
TabIndex = 4
Top = 840
Width = 3015
End
Begin VB.TextBox txtProgID
Height = 270
Left = 240
TabIndex = 1
Top = 360
Width = 2970
End
Begin VB.TextBox txtItemID
Height = 270
Left = 3360
TabIndex = 0
Top = 360
Width = 2970
End
Begin VB.Label lblProgID
Caption = "程序標識符(&P):"
Height = 255
Left = 240
TabIndex = 3
Top = 120
Width = 2970
End
Begin VB.Label lblItemID
Caption = "項標識符(&I):"
Height = 255
Left = 3360
TabIndex = 2
Top = 120
Width = 2970
End
End
Attribute VB_Name = "OPCGeneral"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Private Sub PropertyPage_ApplyChanges()
Dim objControl As Object
For Each objControl In SelectedControls
objControl.ProgID = txtProgID.Text
objControl.ItemID = txtItemID.Text
If chkAutoLink.Value = 0 Then
objControl.AutoLink = False
Else
objControl.AutoLink = True
End If
Next
End Sub
Private Sub PropertyPage_SelectionChanged()
' 初始化
txtProgID.Text = SelectedControls(0).ProgID
txtItemID.Text = SelectedControls(0).ItemID
If SelectedControls(0).AutoLink Then
chkAutoLink.Value = 1
Else
chkAutoLink.Value = 0
End If
End Sub
Private Sub txtProgID_Change()
Changed = True
End Sub
Private Sub txtItemID_Change()
Changed = True
End Sub
Private Sub chkAutoLink_Click()
Changed = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -