Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Base Class?
Message
 
 
À
09/01/2001 06:13:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00461063
Message ID:
00461429
Vues:
10
>Is it possible to change the base class so for example if I drag
>a command button on a form it has fontsize=8 instead of 9.
>
>I tired to modify the classes in _BASE.VCX in the FFC folder but it had no effect.
>I realize it preferable to make your own classes but just wondering ....

Hi, Tim.

The first thing one should do before starting to develop VFP applications is to subclass ALL controls (or at least, subclass them as you need it). That allows you to customize things to suit your needs.

Even if you want to use _BASE.vcx, the best approach is to subclass them, because if you upgrade VFP lately and the library has changes, you'll loss your customization or the new features.

In my opinion, the best approach is to do a simple subclass of every control that deals just with style issues (as fontsize, colors, etc), and add functionality and specialized features in another level. That way, you keep a basic level that doesn't have any extra baggage and allows you to branch your class hierarchy without bloating.

Hope this helps.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform