appevents OnActiveControlChange event
Return to Introduction  Previous page  Next page
Applies to
acAppEvents component.  

property OnActiveControlChange: TNotifyEvent;  

OnActiveControlChange occurs immediately after input focus changes to a new windowed control.  
Write an OnActiveControlChange event handler to take specific action when input focus changes to a new control. The change in focus may be within the active form, or across forms to a new form that then becomes the active form.  
When focus moves from one control to another, the following events occur.  
1   If the new focused control is in a different form, focus moves to the new form.  
2   Focus moves to the new active control.  
3   If the active form changed, an OnActiveFormChange event occurs.  
4   An OnActiveControlChange event occurs.  

See also
OnActiveFormChange event.