Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: Is there an Action or a Dispatch handler for TWebBrowser?

www.cryer.info
Managed Newsgroup Archive

Re: Is there an Action or a Dispatch handler for TWebBrowser?

Subject:Re: Is there an Action or a Dispatch handler for TWebBrowser?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Sat, 1 Jul 2006 02:17:17

"Frank Burleigh" <burleigh@indiana.edu> wrote in message
news:44a5df93$1@newsgroups.borland.com...

> My app will *include* an TWebBrowser; I will generate the HTML for it
> in streams.  Included in that HTML I will make a "scheme" or "protocol"
> of my own that I want to intercept when clicked.  In other words, I will
> do big chunks of my user interface in HTML inside my application, and
> that application will "capture" the clicks, then decode the URL to know
> what to do.

You can use the TWebBrowser's OnBeforeNavigate2 event.  If the URL is one
that the application should handle, then set the event handler's Cancel
parameter to True to stop the browser from trying to navigate to it, and
then process the URL as needed.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive