🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TCppWebBrowser, Focus, and Refresh()

#1294
From: James O'Brien
Date: Tue, 01 Mar 2005 03:23
36 lines
2115 bytes
Hello Albert,

This isn't any help, but I tried to duplicated the behavior you described
and couldn't.  Heres the steps I took;

  - Created toolbar button whose "OnClick" event-handler makes a call to
Browser's Refresh() method.
 - Compile/Run program
 -  Load HTML file into Browser window using navigate.
 -  Force keyboard focus to an TEdit control on the main form by clicking
with mouse
 -  Press toolbar button to refresh Browser control and TEdit control still
has keyboard focus.

Does the HTML page you're refreshing have any java script which could be
setting focus of a input field with in HTML document?

James O'Brien

"Albert Wiersch" <mrinternetnewsborland@wiersch.com> wrote in message
news:421e3c72@newsgroups.borland.com...
>
> When I call the Refresh() method of TCppWebBrowser, the browser steals the
> focus. This doesn't happen when the Navigate() method is called.
>
> How can I stop the Refresh() method from taking the focus and giving it to
> TCppWebBrowser?
>
> Thanks.
>
> -- 
> Albert Wiersch
> http://www.htmlvalidator.com/
>
>
>
Technical Details
Message-ID: <4223e03d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <421e3c72@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,44b7dea550a8a14b
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "James O'Brien" <obrien@niscnet.com>
From: "James O'Brien" <obrien@niscnet.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <421e3c72@newsgroups.borland.com>
Subject: Re: TCppWebBrowser, Focus, and Refresh()
Date: Mon, 28 Feb 2005 22:23:37 -0500
Lines: 38
Organization: NISC
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 69.171.99.154
Message-ID: <4223e03d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109647421 69.171.99.154 (28 Feb 2005 19:23:41 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tdsnet-transit!newspeer.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail