title: Delphi How can I detect a click event anywhere on a form including other components
body: <p>I have a <code>TEdit</code> in a Delphi VCL form app (contained in a <code>TFrame</code> instance, if it matters).  After a user indicates they are finished editing, by clicking elsewhere on the form, the caret and focus remain on this control until I click on another control, which then takes the focus.  However, I want the <code>TEdit</code> to loose focus regardless of where the user clicks.  I expect I can use <code>ActiveControl := nil</code> to end focus on the selected control, but I am uncertain where to invoke it.</p>
  
  <p>What I want is for the focus to leave the selected control without necessarily having to transfer it to another control.  I could end focus in the form's <code>OnClick</code> event, but that will not work if the user selects any of the other controls (also contained in frames) on my form, since the form's <code>OnClick</code> event is not triggered.  It seems inelegant and tedious to provide separate <code>OnClick</code> events for each additional item on the form.</p>
  
  <p>What is the global solution to achieve this behavior?</p>