🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: force webbrowser to open new window

#3041
From: Hans Galema
Date: Sun, 27 Nov 2005 14:22
15 lines
1741 bytes
Bill M wrote:
> I use BCB4 pro and have imported the Microsoft Internet Controls. I
> have successfully loaded a local html file with links in it. When I
> click a link I'd like it to respond in the same way a shift-click or
> right-click and Open in New Window does...in other words, open up IE.
> Any pointers/ideas? I've read Microsoft's docs and done some googling
> but seems everyone else is concerned with stopping new windows, which
> is opposite of what I want.


You did not tell that you use TCppWebBrowser. If you do then use
the OnBeforeNavigate event to determine if you open the link in
a new window.

Hans.
Technical Details
Message-ID: <4389c188@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41gfo1pomm5je5109lstk1fi3nbfld88es@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3a329ebfcebc5ca9
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 27 Nov 2005 15:22:58 +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: force webbrowser to open new window
References: <41gfo1pomm5je5109lstk1fi3nbfld88es@4ax.com>
In-Reply-To: <41gfo1pomm5je5109lstk1fi3nbfld88es@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <4389c188@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1133101448 145.98.201.248 (27 Nov 2005 06:24:08 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail