title: How to tell a non-modal has lost/regained focus
body: <p>I have a main form and a secondary form both with some DBAware controls from a common database. Currently I am using ShowModal but I would like to be able to use Modal to go back to the main form and navigate the database.</p>
  
  <p>In the secondary I can replace the TDBEdits with TEdits and stuff them with data when I Show the secondary form. There is no means of navigating the database in the secondary form, but, if the user can go back to the main form where they can navigate, I will need to reset the database cursor when they return to the secondary.</p>
  
  <p>How can I tell that the secondary form has just lost focus? I can grab the database cursor position.</p>
  
  <p>How can I tell when the secondary form gets focus again? So I can reset the database cursor if it was moved before returning.</p>
  
  <p>Thanks
  p.s. Please no questions on why and/or alternative suggestions. It is an existing application and I really do not want to have to fix miles of code. As crappy as it is, it has been working for years and the customer wants the change of possible. :)</p>