MDI and Form manipulation
In the MDIchild forms' QueryUnload events, if they are being closed because the application is closing, make them write out their own state information.
MillStream Designs Ltd
Independent IT Consultants
I have an MDI application with many forms, when a form is unloaded I can get
the possitions and form states, these can then be re-applied when the form
is next opened.
What I am failing to do so far, is record if a Child was open when the Main
MDI form was closed. I've chosen to save a text file containing all the
open form names, I can then loop through this, loading the forms when the
application next starts.
If I call the SaveForms routine from the Unload event of the main form all
the Children are already closed. The Deactivate and Terminate events do not
fire when the main form is unloaded.
I'm a little stuck with this one. Any help greatfully received.