Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Notification virtual interfaces
Message
De
04/12/2002 23:27:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Notification virtual interfaces
Divers
Thread ID:
00729760
Message ID:
00729760
Vues:
100
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
Fil
Voir

Click here to load this message in the networking platform