🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi.win32
Article #166

Re: Does my aplication have the focus?

#166
From: Graham Powell
Date: Tue, 08 Jul 2008 08:24
24 lines
1832 bytes
Application.Active does indeed report the correct state, but is there an 
event generated to notify me if this state has changed?
The FormDeactivate event does not get called when the focus switches from my 
application to Notepad.

Graham

"Peter Below (TeamB)" <none@nomail.please> wrote in message 
news:xn0fsel051ta5l002@newsgroups.borland.com...
> Graham Powell wrote:
>
>> My application consists of basically a MDIForm. While it is running,
>> is there a way of knowing if the application has focus or whether it
>> has been transferred to another application such as NotePad for
>> example.
>
> if Application.Active then
>
> -- 
> Peter Below (TeamB)
> Don't be a vampire (http://slash7.com/pages/vampires),
> use the newsgroup archives :
> http://www.tamaracka.com/search.htm
> http://groups.google.com 
Technical Details
Message-ID: <48732438$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <48724373@newsgroups.borland.com> <xn0fsel051ta5l002@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 14438e,66a2158d4085dad6
X-Google-Attributes: gid14438e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Graham Powell" <graham@deephaven.co.uk>
Newsgroups: borland.public.delphi.nativeapi.win32
References: <48724373@newsgroups.borland.com> <xn0fsel051ta5l002@newsgroups.borland.com>
Subject: Re: Does my aplication have the focus?
Date: Tue, 8 Jul 2008 09:24:24 +0100
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 81.168.109.77
Message-ID: <48732438$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1215505464 81.168.109.77 (8 Jul 2008 01:24:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail