title: How to make my custom control be notified when his form or application receives and loses focus?
body: <p>I want my control to receive distinct notifications only when it's parent form (not panel or something else, just the main form of this control) receives and loses focus. Doesn't matter if the focus is switched from another form of the application or between my application and other application, it must be received for both cases. Is it possible? I want to suspend some updates of the control when his form is not active and resume the updates when the form is activated. </p>
  
  <p>Edit: In other words, the control must catch the (<code>TForm.OnActivate</code> + <code>TApplication.OnActivate</code>) and (<code>TForm.OnDeactivate</code> + <code>TApplication.OnDeactivate</code>)</p>
  
  <p>Edit2: If it's not possible both, at least if I can make the control catch the events from TApplication. It's more important than those from TForm.</p>