Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Billy Barrows
  Where is Billy Barrows?
 Paintsville
 Kentucky - United States
 Billy Barrows
 To: Tamar Granor
  Where is Tamar Granor?
 Elkins Park
 Pennsylvania - United States
 Tamar Granor
 Tags
Subject: RE: Subclass form
Thread ID: 310879 Message ID: 311189 # Views: 32 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Wednesday, June 29, 2011 3:01:17 PM         
   


> > Learning VFP.
> > I subclassed all the VFP base classes to my.vcx file.
> >
> > How do I create a new form based on my subclass form?
> >
> > The new classes can be viewed on the form controls, but the form subclass cannot be used there.
> > Thanks
>
> The easiest way is to use the Toolbox. From the menu, choose Tools | Toolbox (or click the Toolbox icon on the standard toolbar).
>
> The first time you want to use your own classes, you have to set things up properly:
>
> - Right-click on the Toolbox and choose Add Category;
> - In the dialog, give your category a name. I typically use a name that reflects what client or project this category will relate to.
> - The new category is added. Click on its name to open the category.
> - Right-click and choose Add Class Library.
> - For the class library in the dialog, point to your class library.
> - Add the classes in your class library are added to the Toolbox.
>
> Now you're ready to get to work.
>
> To create a form based on a form class, find the form class in the Toolbox, right-click on it and choose Create Form.
>
> To add controls to the form, either drag them from the Toolbox to your form, or double-click on them in the Toolbox. If you do the latter, you'll have to drag them to where you want to place them.
>
> One of the things that makes the Toolbox so useful (besides being able to create forms based on custom classes) is that you can easily add controls to container-type controls (such as pages and grids). Drag a control onto a pageframe and it's dropped onto the active page of the pageframe. Drag a control onto a grid and it's dropped into the column of the grid where you dropped.
>
> There's lots more great stuff you can do with the Toolbox. Check out this paper on my website:
>
> http://www.tomorrowssolutionsllc.com/Materials/Granor_Toolbox.pdf
>
> Tamar
>
> Tamar
**************
Thanks for the info on the toolbox.

When I first look at the toolbox, "My Base Classes" is already there. The properties show these are stored in ((home()+"FCC\_BASE.VCX))

Is this _BASE.VCX already a subclass of the VFP Base Class? If so, it appears that I did not need to subclass my own my.vcx.

Billy

ENTIRE THREAD

Subclass form Posted by Billy Barrows @ 6/26/2011 5:10:54 PM
RE: Subclass form Posted by Samir H. @ 6/26/2011 5:23:05 PM
RE: Subclass form Posted by Billy Barrows @ 6/26/2011 5:47:18 PM
RE: Subclass form Posted by Mike Gagnon @ 6/26/2011 9:31:41 PM
RE: Subclass form Posted by Tamar Granor @ 6/27/2011 11:05:04 PM
RE: Subclass form Posted by Billy Barrows @ 6/29/2011 3:01:17 PM
RE: Subclass form Posted by Tamar Granor @ 6/30/2011 10:28:03 PM