Article View: borland.public.cppbuilder.internet.web
Article #475Re: CppWebBrowser OnNewWindow2 event handling
From: Hans Galema
Date: Sun, 07 Jan 2007 22:38
Date: Sun, 07 Jan 2007 22:38
16 lines
1520 bytes
1520 bytes
Mark Jacobs wrote:
> The problem I am having is deriving the URL that will be launched, if I do
> allow the pop-up. How do I derive this from the arguments handed to the
> event handler?
You do not need to know the URL as all you have to provide is a pointer
to an instance of TCppWebBrowser that should display the new page.
So you could instantiate a new form (containing a TCppWebBrowser) here
TForm1 *Form1 = new TForm1(0,false,0,0);
*ppDisp = Form1->CppWebBrowser1->Application;
Hans.
Technical Details
Message-ID:
<45a176de$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45a16d9f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,3b7f79a773c6cfb8 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 07 Jan 2007 23:38:50 +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.web Subject: Re: CppWebBrowser OnNewWindow2 event handling References: <45a16d9f$1@newsgroups.borland.com> In-Reply-To: <45a16d9f$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <45a176de$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1168209630 145.98.201.248 (7 Jan 2007 14:40:30 -0800) Lines: 16 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail