Returning from TForm1.Close() event
Posted on 2001-07-24
Hello. Just a problem I ran across while programming =>
How do I return from a TForm1.Close() event.
For example =>
when a user presses the window's X, then the program tells him the document has not been saved, and he presses cancel
when a user decides to save the file, but then in the SaveDialog presses cancel, thereby indicating that he wants to return to the program
When a new file is opened, but the existing file needs to be saved, I also need to do the same check (i.e - do you want to save the file?), but that I can sit in a seperate procedure, or check the Sender... Concerning the TForm.Close() I'm stumped however...
Thanks for any help