🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4618

Re: cppwebbrowser catch clicks

#4618
From: Hans Galema
Date: Wed, 19 Jan 2005 09:53
16 lines
1434 bytes
roger wrote:
> Is there anyway to catch the clicks of the cppwebbrowser displayed links to
> modify the requests prior to navigating to the links..

Yes. Use the following event:

void __fastcall TForm1::CppWebBrowser1BeforeNavigate2(TObject *Sender,
       LPDISPATCH pDisp, TVariant *URL, TVariant *Flags,
       TVariant *TargetFrameName, TVariant *PostData, TVariant *Headers,
       TOLEBOOL *Cancel)
{
   if ( URL does not satisfy )
	Cancel = true;
}

Hans.
Technical Details
Message-ID: <41ee2e44$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41edeebd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6ff30a997b5c7dea
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 19 Jan 2005 10:53:12 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: cppwebbrowser catch clicks
References: <41edeebd$1@newsgroups.borland.com>
In-Reply-To: <41edeebd$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <41ee2e44$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106128452 129.125.201.248 (19 Jan 2005 01:54:12 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail