Michelle,
You can generate them all pretty easily with a program:
create classlib myclass
create class cTextbox of myclass as textbox
create class cEditbox of myclass as editbox
...
all you have to do is close the designer. You can also create into another classlib like this
create class txtDate of otherlib as cTextbox from myclass
it keeps you from having to go through the incessant dialog boxes.
And for example your cLabel class should probably set Backstyle to Transparent and Autosize .t. and provide some default error handing in the Error method.
When you want to use your classes use Tools/Options/Field Mapping so your classes get used when fields are dragged and dropped. You can also drag your class out of the project manager, or switch the Form Controls toolbar, but the toolbar gets too cumbersome to use when you have several textboxs subclasses you have to let the tooltip tell you which is which. I find the PM much handier to drag from.
>One bit of advice he gave was to never use the base classes. He said to subclass them all and use those, in case you ever decide you want to, say, change all the textboxes in your app. That sounds like good advice, so I planned on doing it until I tried it and ran into a big problem. Where are the base classes?
>
>I did a search on my hard drive for *.vcx and didn't come up with any that seemed likely. Are they in a .vcx? If not, how do you subclass them?