RE: How to know which control is focused

"Talip Kellegoz" <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
	You can use "Self.ActiveControl" as
------------------------------------------------------------------------------------
	if Self.ActiveControl is TEdit then
	With Self.ActiveControl As TEdit do
	Begin
		Text:='This  is an active object!..';
	End;
------------------------------------------------------------------------------------

With best regards

-----Original Message-----
From: smching2001 [mailto:[email protected]]
Sent: Saturday, July 12, 2003 9:57 AM
To: [email protected]
Subject: [Delphi] How to know which control is focused


The form keypress event is fired whenever a key is pressed, at the 
same time I want to know which control is in focus.

Any solution?

Thanks




CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Natural Vitamins for Good Prostate & Male Health. $28.97
http://www.challengerone.com/t/l.asp?cid=2865&lp=prosta2.html
http://us.click.yahoo.com/qJIe0D/89VGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.