Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 Tags
Subject: FormBoss helper class demo manages forms
Thread ID: 373863 Message ID: 373863 # Views: 113 # Ratings: 2
Version: Visual FoxPro 9 Category: Classes and Objects
Date: Thursday, March 28, 2013 12:18:31 AM         
   


Foxites:

The purpose of the attached form is to test a simple helper class called "FormBoss".   I kind of like the name "boss".   You can have a ColorBoss, an ExcelBoss, etc.   Delegate your VFP work to a real Boss man, not a wimpy helper :- )



I followed the idea of a couple recent Foxite thread Paul Gibson got rolling with on the usefulness of helper classes.

The issue I tried to solve here is managing a number of child forms from a main form.

My goal was to stick as much functionality as I could in the FormBoss class so that all you really need to concern yourself with is the form name you want to call and it's position on the screen.

Test it out by moving the child forms to different positions which FormBoss remembers.

Finally, when you close the main form, the child forms are destroyed.

Would be interested to hear if this is the best way to set up such a helper class.

Perhaps others have some good ideas on how to improve this basic idea.

Download FormBoss.zip 10KB


Dan Baker

ENTIRE THREAD

FormBoss helper class demo manages forms Posted by Dan Baker @ 3/28/2013 12:18:31 AM
RE: FormBoss helper class demo manages forms Posted by Dan Baker @ 5/4/2013 3:51:01 PM