Hello,
I did a quick search on Google Groups and I found that the usual
solution on Delphi is to iterate all forms and close them on the
OnCloseQuery event of the main form.
This way we don“t have to add another event and everything works. I
advise against adding new events just to handle this, althought I must
say the behavior of not calling on OnClose of other forms to be
strange.
A quote from my search:
"You can easily cope with this I think. Write an onclosequery (or onclose)
handler for the main form. When the form closes, in the handler loop through
Screen.Forms and call close on each form (except if it equals Self). This
will trigger onclose in each form which is what you are after. In
onclosequery for the main form dialogs are still functional so you'd be able
ask the user. "
thanks,
--
Felipe Monteiro de Carvalho
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives