title: Delphi XE4 - Get current monitor of form
body: <p>On a multi monitor environment, I want to be able to get the current monitor and the active monitor when closing the form in order to save the info and when the form is reopened at a later time, the form to be displayed in the last place it was displayed.</p>
  
  <p>When form is showed, I do all the checking (if monitor number -i- exists and so on), and if all is ok, I display the form on the right monitor (i)</p>
  
  <pre><code>Form1.BoundsRect := Screen.Monitors[i].BoundsRect;
  </code></pre>
  
  <p>I want to be able to get the current monitor the form is displayed on and the active monitor in Form1.onCloseQuery event so I could save that info in some Ini, DB, whatever, but it seems I cannot find the right method to do it properly. </p>
  
  <p>Any ideas?</p>