I thought that I had already simply overridden it, and went through all sorts of mental gymnastics.
 
Then checked the Close button (TBitbtn) itself.
 
It seems that a couple of years ago I'd reset it to Custom  and executed Application.Terminate in its on click handler.
 
Reset Kind to Close and all was fine the QueryClose runs sweet.
 
This then rasies the isssue that Application.Terminate  appears to cut to the chase and miss out the various form's QueryClose routines entriely.
 
Useful probably for a forced shutdown?
 
In the normal course of events [no pun intended], it seems to be triggered after the actual form has closed, so calling it directly from within a form jumps to that point of the shutdown?
Borland Help:
 
Application.Terminate
 
Ends application execution.
 
procedure Terminate;
 
Description
 
Terminate calls the Windows API PostQuitMessage function to perform an orderly shutdown of the application. Terminate is not immediate.
 
Terminate is called automatically on a WM_QUIT message and when the main form closes.
 
 
Paul
-----------------
Not a problem. We have message dialog code in CloseQuery - overide rather than event handler.
-----Original Message-----
From: Paul A Norman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 11 December 2003 12:49
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] TMainFOrm.QueryCanCLose TMainFOrm.Destroy

Has any one found that on fast computers they can not get *any sort* of message or dialogue box to show in

TMainFOrm.QueryCanCLose  or TMainFOrm.Destroy ?

They sort of glimmer for a moment and then get disposed of.

Paul
[EMAIL PROTECTED]
http://PaulANorman.com

Ph NZ 021 782 433
Fx NZ 021 292 2433

Overseas:

Ph. +6421782433
Fax +64212912433

P.O. Box 1005
Nelson 7015
New Zealand


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/del
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to