Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP manipulate an ActiveX control in HTML page?
Message
De
15/04/2002 22:37:50
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Can VFP manipulate an ActiveX control in HTML page?
Divers
Thread ID:
00645274
Message ID:
00645274
Vues:
52
Hi All

I'm experimenting with VFP7.0 and HTML. Thus far, I am able to display a page of HTML in a VFP form using the web browser control and everything works and looks fine.

Now I am trying to embed an activex control in the HTML page and access it from VFP. Is this possible? I've read a little about the Document Object Model (DOM) but cannot seem to make sense of it.

I added the following to my HTML and get a spinning blue wedge as expected:
<OBJECT ID="piechart"
CLASSID="clsid:369303C2-D7AC-11d0-89D5-00A0C90833E6" STYLE="position:relative; Width:125;height:100">
<PARAM NAME="Line0001" VALUE="SetFillColor(0,0,255)">
<PARAM NAME="Line0002" VALUE="SetFillStyle(1)">
<PARAM NAME="Line0003" VALUE="SetFont('Verdana',40,650,0,0,0)">
<PARAM NAME="Line0004" VALUE="Text'Arc',40,650,0,0,0)">
<PARAM NAME="Line0005" VALUE="SetLineColor(0,0,0)">
<PARAM NAME="Line0006" VALUE="SetLineStyle(1,3)">
<PARAM NAME="Line0007" VALUE="SetFillColor(0,0,255)">
<PARAM NAME="Line0008" VALUE="SetFillStyle(1)">
<PARAM NAME="Line0009" VALUE="Pie(-150,-70, 200,200, 15,22, 0)">
</OBJECT>
<script language="JavaScript1.2">
if (document.all)
setInterval("piechart.Rotate(5,5,5)",100)
</script>
=================================================

In the VFP debugger, when I enter:

_vfp.activeform.browser1.document.all("piechart") it always returns a .NULL. object.

What am I doing wrong? Should I not be able to change properties of the "piechart" object in the page? If so, how?

TIA

Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform