Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement