Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browser Control
Message
 
 
To
26/11/2002 09:35:36
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00726658
Message ID:
00727118
Views:
23
Mike,

I'm a little curious as to why you'd use an HTML form inside a VFP form. You can easily create a wizard form using a tabless pageframe and use a Next button to change to the next page.

Anyway if you are stuck using the HTML forms I think you've gotten into a synchronous state where the webbrowser is not getting control back until the VFP method finishes and it's not going to even try and render anything.

How about using the Proceed button to actually launch a timer object are return to IE. Sometime later say 500 milliseconds the Timer event fires which makes the call to NumberCrunch. Inside NumberCrunch() you should be able to push new HTML into the browser control to indicate progress. This could even be % complete where you stretch a gif. There are a couple of poll articles on the Wiki where you vote by simply incrementing the horizontal stretch of a 1 bit wide bar gif.

>I was wondering if you, or anyone else following this thread, can provide further assistance with the Web browser control. I apologize for the lengthy message that follows but I feel that it is necessary to describe the issue.
>
>I have the web browser control on a VFP7 form and I Navigate2 my HTML document then wait for the user to interact with it. They can enter data using textboxes, dropdown lists, checkboxes, etc. then select a "Next" button. I lead them thru a series of steps/pages (inductive user interface?) and I can trap the "Next" request and navigate to the appropriate HTML document. I repeat these steps until a final HTML page which has a "Proceed" button instead of a "Next" button.
>
>Once they select "Proceed" I have a method (NumberCrunch) that is supposed to do some analysis of the data they entered. I have found that I can call my VFP NumberCrunch method by checking if the url parameter of the browser control's DocumentComplete event is the final HTML page. If it is, I instantiate an analysis custom object and call the NumberCrunch method. During this process (which can be lengthy) I want to provide some feedback to indicate progress is being made and that the computer is not frozen. As such, I placed an animated GIF (spinning logo) on my final HTML page that is supposed to show this. The problem is, the GIF shows but does not animate until the NumberCrunch method is complete! Kinda defeats the purpose :(
>
>Do you know how to make this work as I expect? I've tried placing a DOEVENTS within my NumberCrunch method but it doesn't help. I get the feeling that the web browser control needs to finish whatever it is supposed to do in the DocumentComplete() event before it renders the page completely. If so, what event would I trap to then call my NumberCrunch method?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform