🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.lang.borland-Delphi
2 messages
2 total messages Started by James Smith Wed, 08 Sep 1999 00:00
Getting the keyboard focus handle
#3
Author: James Smith
Date: Wed, 08 Sep 1999 00:00
11 lines
1236 bytes
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
Re: Getting the keyboard focus handle
#2
Author: Ilia Rassadin
Date: Thu, 09 Sep 1999 00:00
27 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads