Try using Release instead of Free - should never use Free on Forms.
Other than that - pass, but suspect it will not solve your problem.
Myles.
-----Original Message-----
From: Alistair George [SMTP:[EMAIL PROTECTED]]
Sent: Friday, July 23, 1999 3:41 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Forms
Tks for the info on Paramstr. I'll do some more work on it and advise the
simple way, if there is any. Myapp allows only one instance.
There is a really weirdo thing happening on myapp that I have been buggering
around with for the last 3 hours. What happens is that the mainform calls a
modal form. Now if the mainform is visible, then all works ok, reentering
the modal call, but if it isnt (it can optionally live on the Tray), then
the following in the modal call works properly only once. This is my modal
call:
with TfrmCapture.Create(Application) do
try
ShowModal;
finally
Free;
end;
The next time the modal call is used with mainform on the tray the following
lines dont work:
procedure TfrmCapture.btnCaptureClick(Sender: TObject); //modal form
begin
frmcapture.WindowState:=wsMinimized;
frmcapture.Visible:=false;
The frmcapture form is there, visible, and I can move the modal box around.
It wont go away even though de bugger shows the lines are executed. I have
checked to see if the form is re-created, but no, its just like the above
lines dont mean anything. Any ideas? its got me stuffed.
Cheers,
Al+
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
application/ms-tnef