A new TForm.OnActiveControlChanged event? lazarus / 31-LCL ---------------------------------------------------------------------- Avishai · 2011-08-05 07:04 I have a need to do some processing when each control gets focus and before any key is pressed.  I tried setting TForm.Keypreview:= True and using TForm.OnKeyDown, TForm.OnKeyPressed and TForm.OnKeyUp but all of these are too late.  There is a property TForm.ActiveControl, but I can not find any event that allows me to see when this changes.  It would be nice if there was a published event TForm.OnActiveControlChanged, but there isn't.  Right now, I have to do this through the OnEnter event for every control. This is not very efficient. Any suggestions? ---------------------------------------------------------------------- Elmug · 2011-08-05 07:13 I wonder if OnMouseEnter might do the trick?