Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a Visual FoxPro web browser + Click Event
Message
From
22/11/2004 08:47:37
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
21/11/2004 15:49:12
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00963349
Message ID:
00963453
Views:
9
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform