Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>... and if you need to close single form, then use:</p> <pre><code>Form.Close; </code></pre> <ul> <li>GUI AND HANDLER DELETED. Reference and some parts of memory is left to provide access to variables, constants, etc.</li> </ul> <p>If you need to hide ( something like Minimize, only GUI is cleared ) form, then:</p> <pre><code>Form.Hide; </code></pre> <ul> <li>GUI is cleared, leaving internal resources untoauched ( reference, handler, memory )</li> </ul> <p>If form is dynamic ( created at runetime ), then use:</p> <pre><code>Form.Destroy; </code></pre> <ul> <li>ALL RESOURCES WILL BE CLEARED FROM MEMORY, leaving reference and handlers attached so you could access its location in memory.</li> </ul> <p>If form is dynamic and you will not use it for the same interface, then:</p> <pre><code>Form.Free; </code></pre> <ul> <li>ALL RESOURCES, REFERENCES, HANDLERS ARE DELETED. I recommend to use this to VCL TComponent class, not for TForm class.</li> </ul> <p>Also, there is Form.FreeAndNill, but my guess that it deleted all memory and loaded handlers, only allowing to use same memory space in the same interface again... (I might be wrong though).</p> <p>P.S. I hope I am not writing wrong things as the last time I read the theory was a long, long time ago... and it was about Destructor DESTROY in general ...</p> <p>P.P.S ALSO PLEASE BE CAREFUL if you're writing a Vista-ready app - that it includes UAC Handling with manifests / runtime code and SuperBar compatibility requirement. Also Aero requires some additional megabytes to output file due its Aero feature ... :P</p>
    singulars
    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.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. 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