Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Assuming your form variable is called ReportForm:<br /><br /> The normal way is to just call the ReportForm.Show method again. Or set ReportForm.WindowState to wsNormal for minimized windows. Or call <code>ShowWindow(ReportForm.Handle, SW_RESTORE);</code> which will put a minimized window back in it's original shape.<br /><br /> You can also force the ReportForm to the front, but because it's non-modal, it won't respond to anything, making your application behave as if it's hanging. To do this, use:</p> <pre><code> ReportForm.FormStyle := fsStayOnTop; ReportForm.Show; ReportForm.FormStyle := fsNormal; </code></pre> <p>It works, bringing ReportForm back to the foreground. You might want to preserve the old FormStyle value, though. And yeah, it's a bit of a hack. Furthermore, the form <i>will not</i> respond to the mouse or keyboard simply because the modal form is still demanding attention in the background! (It will sooner or later return to the foreground again.)<br /> A modal form will demand <b>all</b> attention from the Windows messages. This trick will just temporary hide the modal form.<br /> Btw, the simplest way to find that form is by using a global variable in your project and assign the report form to that variable. Then you can just call <code>if Assigned(YourForm) then YourForm.Show;</code> when you need to display it again. (Plus the other two lines, if need be.)<br /><br /><br />So, best solution would be the <code>ShowWindow(ReportForm.Handle, SW_RESTORE);</code> which should work, I think... It will pop back behind the modal form, where it's supposed to be.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload