Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where's the beef? (er...base)
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00112878
Message ID:
00113151
Vues:
25
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform