Article View: borland.public.cppbuilder.internet.web
Article #1455Re: How to capture events on a TCppWebBrowser...
From: Nesbel Fra
Date: Thu, 16 Dec 2004 11:36
Date: Thu, 16 Dec 2004 11:36
35 lines
1899 bytes
1899 bytes
That's a great solution.
Thanks a lot!
Regards,
Nesbel
Hans Galema <notused@notused.nl> wrote:
>Nesbel Fra wrote:
>
>> In my project I need to create TCppWebBrowsers components at runtime, I use:
>> TCppWebBrowser* aBrowser = new TCppWebBrowser(pnlWeb);
>> Somebody know how can I capture events on each "aBrowser" component??
>
>You can use all eventhandlers that otherwise are created and
>assigned by the objectinspector in the ide.
>
>You can once let create an eventhandler by the ide and then assign
>it to the property of your at runtime instanciated component.
>
>For instance: The ide can create: the CppWebBrowser1DocumentComplete
>eventhandler which you then give your code:
>
>void __fastcall TForm1::CppWebBrowser1DocumentComplete(TObject *Sender,
> LPDISPATCH pDisp, TVariant *URL)
>{
> Showmessage ( "CppWebBrowser1DocumentComplete" );
>}
>
>Now assign it to your component aBrowser:
>
> aBrowser->OnDocumentComplete = CppWebBrowser1DocumentComplete;
>
>Hans.
Technical Details
Message-ID:
<41c17344$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41c004b6@newsgroups.borland.com> <41c15299$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,e1f82dc4cb951cf8 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Nesbel Fra" <nesbel.fra@gmail.com> Sender: "Nesbel Fra" <nesbel.fra@gmail.com> Reply-To: "Nesbel Fra" <nesbel.fra@gmail.com> Subject: Re: How to capture events on a TCppWebBrowser... Newsgroups: borland.public.cppbuilder.internet.web X-User-Info: 195.53.211.66 References: <41c004b6@newsgroups.borland.com> <41c15299$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <41c17344$1@newsgroups.borland.com> Date: 16 Dec 2004 03:36:36 -0800 X-Trace: newsgroups.borland.com 1103196996 207.105.83.66 (16 Dec 2004 03:36:36 -0800) Lines: 36 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail