[Lazarus] How to close a window from code

Alexsander Rosa alexsander.rosa at gmail.com
Wed Feb 1 19:19:11 CET 2012


Or even (Self as TForm).Close for that matter.

2012/2/1 Rich Saunders <saunders.richard.p at gmail.com>

> On 2/1/12 12:49 PM, Timothy Groves wrote:
> > However, the Form1.Close version did, and that's what I'm using.  Thanks!
> Tim-
>
> Note that using Self.Close; would be safer and much preferred over
> Form1.Close; when called within a TForm1 class method.
>
> It does not rely on the Form1 instance reference to be present and usable.
>
>
-- 
Atenciosamente,
Alexsander da Rosa
http://rednaxel.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120201/feeea6e4/attachment-0003.html>


More information about the Lazarus mailing list