🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #341

Re: Pop-ups

#341
From: Remy Lebeau (TeamB)
Date: Thu, 30 Nov 2006 18:41
21 lines
1577 bytes
"Jesper Safholm" <jesper@safholm.com> wrote in message
news:456f0781$1@newsgroups.borland.com...

> I just have a quick question: How can I block Pop-ups using
> CppWebBrowser in BCB6?
> Can i just post something in the "void __fastcall
> TForm1::CppWebBrowserOnNewWindow2"?

As is stated in the documentation:

    "Cancel allows the event handler to block the creation of a new window.
When the event handler sets Cancel to true, the Web browser tries to display
the target resource in its current window, starting with an
OnBeforeNavigate2 event."

So simply set the Cancel parameter to true in both the OnNewWindow2 and
OnBeforeNavigate events.


Gambit
Technical Details
Message-ID: <456f26bb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <456f0781$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,ecece758e93816f7
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <456f0781$1@newsgroups.borland.com>
Subject: Re: Pop-ups
Date: Thu, 30 Nov 2006 10:41:54 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <456f26bb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1164912315 69.169.4.232 (30 Nov 2006 10:45:15 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail