Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Design Question
Message
De
06/12/2006 04:36:58
 
 
À
05/12/2006 13:03:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01174970
Message ID:
01175128
Vues:
8
> protected methods are available to the class and child objects. These cannot be overwritten.

That is a good starting point.

a)
Make a class based on container and put the textbox to it. Now textbox belongs to the class and can call methods you define as protected.

Still I think it can be overwritten.

b)
Consider calling mycontainerclass::mouseenter(...) to call the method of your class the way it is defined in the class.

Take a lok at the :: operator in the help.

c)
You might also consider using the control base class, put a container in that and a textbox in the container. That container belongs to you only. The user/developer using that control class only can see the public properties and methods of the outer control frame.

Bye, Olaf.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform