Thanks Leigh.

Actually I was more looking for a reason why when you have called
form1.close (or equiv) that an application would not actually close?? This
is very intermittant. I would say about 1 in 200 times it will not close.

The form has direct-x controls is doing a lot of memory management and
taking a lot of keyboard input, it seems as though it is almost getting so
tied up in knots that it does not get the message to close.

Is this possible?

Matt.
----- Original Message -----
From: "Leigh Wanstead" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, September 11, 2000 10:22 AM
Subject: Re: [DUG]: messages.


> Dear Matthew,
>
> > Are there default situations where an application will reject a message
to
> > close, e.g. if it was too busy doing other things etc?
>
> type TCloseQueryEvent = procedure(Sender: TObject; var CanClose: Boolean)
of
> object;
> property OnCloseQuery: TCloseQueryEvent;
>
> That is event OnCloseQuery for. You may reject close form by simply set
> CanClose to False.
>
> Best Regards
> Leigh Wanstead
>
> ----- Original Message -----
> From: "Matthew Comb" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
> Sent: Monday, September 11, 2000 9:49 AM
> Subject: [DUG]: messages.
>
>
> > Hi people, this is a theoretical question.
> >
> > Are there default situations where an application will reject a message
to
> > close, e.g. if it was too busy doing other things etc?
> >
> > Can messages just get lost if the application is too busy? or will they
> > always get queued?
> >
> > Matt.
> >
>
> --------------------------------------------------------------------------
> -
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> >
> >
>
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to