General information
Category:
ActiveX controls in VFP
Title:
Notification virtual interfaces
Quite frequently control vendors provide abstract/virtual interfaces which need to be implemented.
"Ability to get data using IUnboundHandler notification interface"
"I might recommend that you use VirtualInterface mode"
When browsing VB examples we may see in a form code something like this :
'General Declarations
Implements IUnboundHandler
' Sets the UnboudnMode handler
'Grid1 our ActiveX on a form
With Grid1
' Sets the UnboudnMode handler
Set .UnboundHandler = Me
' Holds the .Items property to a variable to avoid calling QueryInterface many times in ReadItem handler
Set its = .Items
Endwith
Private Property Get IUnboundHandler_ItemsCount() As Long
' rs ADO recordset
IUnboundHandler_ItemsCount = rs.RecordCount
End Property
Private Sub IUnboundHandler_ReadItem(ByVal Index As Long, ByVal Source As Object, ByVal ItemHandle As Long)
'implementation code
Did anyone succed in making those interfaces work in VFP ?
Thank you
Michael
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only