<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 18/04/2012 17:53, patspiper wrote:
<blockquote cite="mid:4F8EF176.7060703@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
On 18/04/12 17:39, Martin wrote:
<blockquote cite="mid:4F8ED23F.604@mfriebe.de" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<br>
</blockquote>
<blockquote cite="mid:4F8ED23F.604@mfriebe.de" type="cite"><br>
But this is not a bug.<br>
And Delphi docs, IMHO are not making a 100% clear statement
about this.<br>
</blockquote>
It is a bug considering that both Delphi and Lazarus docs are
clear about it: ShowModal does not return until the form is
closed.<br>
</blockquote>
<br>
That's not the point<br>
<br>
The point is: Close <> Destroy<br>
In fact, with modal active close does hide the form (and sets modal
result)<br>
<br>
In anyway it does not say "until the method close is called".<br>
It says "form is closed" never mind how it is closed<br>
<br>
"closing a form" is not the same as "calling close()"<br>
<br>
"calling close()" is only one of many ways to "close a form".<br>
e.g during Modal, you can set ModalResult.<br>
<br>
Depending on close the property CloseAction = caHide, a call to
Close(), does in the end actually call Hide (or set Visible=False).
The call to Close can (optional) destroy the form. But the actual
closing is done by making it invisible.<br>
<br>
So who says, that calling Hide() is not a way of closing the form? <br>
It does the same thing. (the 2 calls have different additional side
effects, but that is a different story)<br>
<br>
<br>
</body>
</html>