Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where's the beef? (er...base)
Message
From
30/06/1998 17:04:52
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00112878
Message ID:
00113151
Views:
24
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
Map
View

Click here to load this message in the networking platform