title: Delphi MDI Child forms and MainMenu
body: <p>We are upgrading a Delphi 5 application to Delphi XE7. The application has a number of MDIChild (FormStyle fsMDIChild) forms which open with WindowState wsNormal. When I open one of these forms, and close it again, my main menu (TMainMenu) on the main form (FormStyle fsMDIForm) aligns itself to the right and never goes back again. If I resize the MDIChild form before closing it (eg. click on "Normal" or "Minimize" icon), this does not happen.</p>
  
  <p>This does not happen with the Delphi 5 version, so I assume something gets handled differently with XE 7.</p>
  
  <p>Anyone else experienced this before? If so, how did you fix it?</p>
  
  <p>UPDATE:</p>
  
  <p>I have successfully replicated this problem:</p>
  
  <ol>
  <li>Create a new VCL app</li>
  <li>Make main form (MainForm) formStyle MDIForm</li>
  <li>Create MainMenu for MainForm with menu items</li>
  <li>Create second form (ChildForm)</li>
  <li>Make ChildForm formStyle MDIChild</li>
  <li>Create MainMenu for ChildForm with menu items</li>
  <li>IMPORTANT (THIS IS WHAT BREAKS IT): Select for ChildForm BorderIcons only biSystemMenu and biMaximise</li>
  <li>Create button on MainForm which creates and shows ChildForm</li>
  <li>Run application</li>
  <li>Click button</li>
  <li>Maximise ChildForm</li>
  <li>Close ChildForm (Has to be maximised otherwise malfunction does not occur)</li>
  <li>Observe that MainForm's menu is now right-aligned with an unclickable 'Minimise' icon on the left If biMinimise is added to ChildForm's BorderIcons, the problem disappears.</li>
  </ol>
  
  <p>I'm pretty sure this is a bug. Correct me if I'm wrong.</p>
  
  <p>Thanks
  J</p>