Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 forms in VFP window at same time?
Message
From
13/09/2000 16:10:37
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00415082
Message ID:
00416090
Views:
39
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
Map
View

Click here to load this message in the networking platform