Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a good way to subclass forms?
Message
From
03/01/2006 17:11:01
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01082881
Message ID:
01082913
Views:
10
>Although I have built a decent class library I haven't used the form class much at all. I could never figure out a good way to get an icon/include file to all my forms. Now I wonder that if I take my form class, which is a subclass of the base class and subclass it again specific to my application will I be doing the right thing? This way I can use a common icon/include file among the app without while still having a common main subclass.

You can subclass your baseclass to make your own "framework" level class. That can be augmented with code that looks in a table and gets the name of an icon to display or just put in your icon name directly. Build all your new forms specifying that form as the basis, and they'll all have the icon and you can change em all in one place!
Previous
Reply
Map
View

Click here to load this message in the networking platform