Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Classes Design
Message
 
 
À
19/01/2007 13:55:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01187089
Message ID:
01187131
Vues:
31
>>>>>Within Project1, execute the command:
>>>>>
>>>>>SET PATH TO "..\aControls\,..\cControls"
>>>>>
>>>>>Fox will then look for a File in Project1, if it cannot find it, it will look for it in aControls, if it cannot find it here as well it will look for it in cControls.
>>>>>
>>>>>Notes:
>>>>>(1) I assume your working folder is Project1.
>>>>>(2) aControls can be a sub-class of cControls if necessary
>>>>
>>>>The way I understood the question and I do not know a simple answer to it is to have a composite class (container based) with some controls (textboxes, labels, etc.) The class should be generic enough to be reused in multiple projects yet have custom look depending on the project (e.g. different label fonts, textbox fonts, etc.).
>>>
>>>I would not try to subclass everything in sight, i.e. making a separate class for every textbox font looks overzealous. Imho, one custom class for each baseclass is a requirement (e.g. mytextbox with few generic methods/properties), and few subclasses can be added on real demand, i.e. when intricated code will be reused.
>>
>>Hi Edward,
>>
>>what if you want specific look and feel for one project but still you want use basic functionality from the base class?
>>
>>Thanks.
>
>It is company-specific. I just change 'base' classes (if you mean fonts), but I'm not recommending it for every situation.

What if it's project specific, and already have cDateTextBox, cPhoneTextBox, cSSTextBox.
and maybe I want to create containers (custom controls)?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform