Article View: alt.comp.lang.borland-Delphi
Article #2Re: Getting the keyboard focus handle
From: Ilia Rassadin
Date: Thu, 09 Sep 1999 00:00
Date: Thu, 09 Sep 1999 00:00
27 lines
1526 bytes
1526 bytes
Hello
Try this code
var
HandleControl: HWND;
begin
{...}
HandleControl = Screen.ActiveControl.Handle;
{...}
end;
Best regards
Alex Zverev
James Smith wrote:
> Hi there,
>
> How can i get the handle of the control with the keyboards focus. I
> would use GetFocus (or GetKeyboardFocus) but that does not work with
> other applications. Is there any other way that I can retrieve the
> handle of the control?
>
> Please send email to odisoft@hotmail.com
>
> Regards
> James Smith
Technical Details
Message-ID:
<37D7D7FB.78F201F1@crosswinds.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7r5c6e$drn$1@toto.tig.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fd817,d452a83f53c5326d X-Google-Attributes: gidfd817,public X-Google-Thread: 1091e5,d452a83f53c5326d X-Google-Attributes: gid1091e5,public X-Google-Thread: 10545b,d452a83f53c5326d X-Google-Attributes: gid10545b,public X-Google-Thread: f973d,d452a83f53c5326d X-Google-Attributes: gidf973d,public X-Google-Thread: 10baee,d452a83f53c5326d X-Google-Attributes: gid10baee,public From: Ilia Rassadin <iliaroot@crosswinds.net> Subject: Re: Getting the keyboard focus handle Date: 1999/09/09 Message-ID: <37D7D7FB.78F201F1@crosswinds.net> X-Deja-AN: 522996070 Content-Transfer-Encoding: 7bit References: <7r5c6e$drn$1@toto.tig.com.au> To: James Smith <odisoft@hotmail.com> X-Accept-Language: en,ru Content-Type: text/plain; charset=us-ascii Organization: Peterlink News System Mime-Version: 1.0 Newsgroups: alt.comp.lang.borland-Delphi,alt.lang.delphi,borland.public.delphi.ide,borland.public.delphi.winapi,comp.lang.pascal.delphi.misc