Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Forms & Form designer
Hi Shawn
I tend to agree that answers on this topic are not being completed thoroughly. However, you have to remember everyone is busy. I prefer to have one way to handle a given problem. The form manager object concept is like a traffic cop that tracks and handles messaging between the forms.
What if you add a menu option to cascade all open forms. Cascading means put each form just below and to the right of the previous form. If all forms were under "control" of a forms manager object, you can have a simple looping construct that would message each form to have them move into the correct position.
If a form set is involved, you have to do more work to figure out where those contained forms fit in the existing cascade. I'm not sure how I'd do it.
I had a problem about a year ago because I had one forma call formb. Forma kept an object reference to formb. When I tried to close the app, I couldn't because the object reference wasn't being released. The form manager had code to run through all forms and close them, but that didn't work. All I had to do was make the form manager release the forms from back to front (last to first) and everything cleared up nicely.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only