That sounds easier. Now I just need to remember what all the base classes are... :)
Dragging from the project manager seems to be the easiest way to do it. Unless I know it matches the field mapping, then I suppose that's easier.
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only