Hi!
Unfortunately, you cannot put a shape over the ActiveX control, this will just not work because ActiveX control is a separate Windows window that draw self over all usual VFP controls (that are not windows but just drwings inside of the VFP window). So Plan B will just not work unless you will use modeless form only and window over the ActiveX that I do not know ho to make it transparent.
MSGraph has its events. Take a look to the help for MS Graph objects model - they have events that you can use. In VFP you can bind VFP code to the ActiveX events using VFPCOM.DLL (in VFP 6) or EventHandler() function (in VFP7).
MSGraph s also easy to print in usual VFP report when you create it in the General field from start and access its objects model through OLEBoundControl.
HTH.
>Hello,
>
>I'm looking for an ActiveX compoment to create scatterplots. This is no big deal by itself, but I wat to be able to devide the plot area in segments (by horizontal and vertical lines) and make these segments interactive. When the users clicks on a segment an event has to be raised. I know this can be done by putting a shape over an MSGraph component, but that's plan B. I would like a component which can handle this by itself. I think that's much safer :-)
>
>Any suggestions?
>
>TIA,
>
>Martin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.