Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hierarchy in vfox3
Message
De
15/05/1997 09:26:54
 
 
À
14/05/1997 21:32:38
Jon Ziegler
Mannesmann Dematic Corp.
Solon, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00031767
Message ID:
00032413
Vues:
35
>>anyone can tell me about the life of hierarchy in visual foxpro 3?
>>
>>because i have some troubles as that my child lost the father changes.... :(
>>
>>thanks
>>Ariel Pablo Klein
>
>I've also had problems with class hierarchies (if that's the hierarchy you talked about). For instance, I've set a base form class' AutoCenter property to .T. and forms that have been subclassed from that base form may or may not be AutoCentered. It's one of the many oddities I've found in VFP 3.0

Even though you set a property in a parent class, you can override it in a subclass or instance of the class. Make sure that properties you want to take on the setting you have in your parent class(es) are not in boldface. If they are, right click on them and chose "Reset to default".

BTW, it is common practice to add a property to your "base" form called something like "lAutoCenter" and use that to control form centering. That way, it is easier to work with your forms in the form designer as they aren't centered on the screen. It also prevents problems from moving the form around (usually accidentally) in the form designer. In your form Init() put:

THISFORM.AutoCenter = THISFORM.lAutoCenter

and set "lAutoCenter" to .T. or .F.

-Doug-
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform