Private Declare Function ext_SBCallBack Lib "COM.dll" Alias "SBCallBack" (ByVal EntryPoint As Long, ByVal arg As Long) As Long
Private Declare Function ext_SBCallBackEx Lib "COM.dll" Alias "SBCallBackEx" (ByVal EntryPoint As Long, ByRef v As Variant) As Variant
Private m_owner As OCXForm
Private Type ControlPositionType
Left As Single
Top As Single
Width As Single
Height As Single
FontSize As Single
End Type
Private m_ControlPositions() As ControlPositionType
Private m_FormWid As Single
Private m_FormHgt As Single
Function ShowMLform(owner As OCXForm) As Long
On Error Resume Next
Set m_owner = owner
Me.Show 1
Set m_owner = Nothing
ShowMLform = 0
Unload Me
End Function
Private Function TriggerCallBack(nodeID As Long, argValue As Long) As Long
TriggerCallBack = ext_SBCallBack(nodeID, argValue)
End Function
Private Function TriggerCallBackEx(nodeID As Long, v() As Variant)
TriggerCallBackEx = ext_SBCallBackEx(nodeID, v)
End Function
Private Sub Form_Load()
TableGrid.Row = 0
TableGrid.FormatString = "^Live Tables|^Last Update|^Update Freq|^Duration|^Temp Table|^Map Function"
TableGrid.ColWidth(0) = 3000
TableGrid.ColWidth(1) = 1700
TableGrid.ColWidth(2) = 1200
TableGrid.ColWidth(3) = 1200
TableGrid.ColWidth(4) = 3200
TableGrid.ColWidth(5) = 3200
End Sub
Private Sub ML_Selected_Click()
Dim nodeID As Long
Dim arg As Long
Dim rtnVal As Long
nodeID = m_owner.CallBackHandlers("MLForm.ML_Selected_Click")
arg = False
rtnVal = TriggerCallBack(nodeID, arg)
End Sub
Private Sub ML_Auto_Click()
Dim nodeID As Long
Dim arg As Long
Dim rtnVal As Long
nodeID = m_owner.CallBackHandlers("MLForm.ML_Auto_Click")
arg = False
rtnVal = TriggerCallBack(nodeID, arg)
End Sub
Private Sub ML_Cancel_Click()
Dim nodeID As Long
Dim arg As Long
Dim rtnVal As Long
nodeID = m_owner.CallBackHandlers("MLForm.ML_Cancel_Click")
arg = False
rtnVal = TriggerCallBack(nodeID, arg)
End Sub
Private Sub ML_Setup_Click()
Dim nodeID As Long
Dim arg As Long
Dim rtnVal As Long
nodeID = m_owner.CallBackHandlers("MLForm.ML_Setup_Click")
arg = False
rtnVal = TriggerCallBack(nodeID, arg)
End Sub
Private Sub ML_Exit_Click()
Dim nodeID As Long
Dim arg As Long
Dim rtnVal As Long
nodeID = m_owner.CallBackHandlers("MLForm.ML_Exit_Click")
arg = False
rtnVal = TriggerCallBack(nodeID, arg)
End Sub