Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX implementing virtual modes in VFP
Message
From
14/02/2003 01:14:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
ActiveX implementing virtual modes in VFP
Miscellaneous
Thread ID:
00753093
Message ID:
00753093
Views:
52
Many ActiveX ( greed/tree) vendors implement virtual modes for fast data retrieval and flexibility to do some transformations with the data.

It became possible starting from VFP7 to implement interfaces. Just curious whether anyone succeded to make it work exactly how it works in VB for any of the following ActiveX : SharpGrid, ExGrid or anything else.

My problem is for ExGrid, for instance , data instantaneously accesible for scrolling as expected, but none of the numerous editors does work.

I am providing some code to illustrate what I've done , though it is obviously doesn't make a lot of sense ( due to dependancy on a vendor implementation )

main.prg

oevents = NEWOBJECT("ivirtual")

do myform
read events

DEFINE CLASS ivirtual AS Custom

IMPLEMENTS IUnboundHandler IN "exgrid.dll"


PROCEDURE IUnboundHandler_get_ItemsCount() AS NUMBER

RETURN rs.recordcount

ENDPROC

PROCEDURE IUnboundHandler_ReadItem(INDEX AS NUMBER, SOURCE AS VARIANT, ItemHandle AS NUMBER) AS VOID
...
ENDDEFINE

In myform Init
...
thisform.exGrid.UnboundHandler = oevents

================================================
Main difference with VB examples is that VB form itself implements interface
,but not sure whether it contributes to the problem.

TIA
Michael
Reply
Map
View

Click here to load this message in the networking platform