Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a Visual FoxPro web browser + Click Event
Message
De
22/11/2004 08:47:37
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
21/11/2004 15:49:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00963349
Message ID:
00963453
Vues:
10
This message has been marked as the solution to the initial question of the thread.
Simplicio,

If you can find a copy of FOXPRO ADVISOR - APRIL 2002, you can get all the details in Andrew MacNeill's article on how to "Build Intuitive Web-like Applications". It was a very good two part article that got me started and I've never missed a chance to use the technique in my applications. I've started up a .NET C# project too that uses this "web" interface heavily.

The basic steps are:

1) Put a MS WebBrowser control (ActiveX) on your VFP form.

2) Create an HTML document with your links that point to custom methods in your VFP app. For example,
<a href="VFP_Takes_Over_Here()">Do my VFP stuff</a>
.

3) In the WebBrowser control's BeforeNavigate2 event, check the URL parameter string for something that indicates that you want to take control. In the example check for the presence of something like url$"VFP_Takes_Over_Here". If the link is a "standard or typical" one, do nothing, otherwise call your VFP stuff then be sure to set CANCEL=.T.

4) Finally, and this is important, be sure to put a NODEFAULT in the WebBrowser's Refresh event to avoid a know bug with the control in VFP.

Good luck.

Regards,

Mike

P.S. Just did a search on the web and found some details at http://www.aksel.com/whitepapers/uidesign.htm

Should be enough to get you going. Hope this helps :)



>Hi does anybody has an idea how to create an Web Browser just like the "Task Pane Manager" of Vfp 8? that allow to trap click event in the browser and allow us to run VFP task . lets say run this vfp form when user click on the links.
>tnx in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform