Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autocenter not working as expected
Message
De
22/02/2000 00:11:21
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Autocenter not working as expected
Divers
Thread ID:
00335246
Message ID:
00335246
Vues:
48
Hi All,

   I've created some forms from a class. In my base class I have the
autocenter property set to .T.. When I run one of these forms they
don't autocenter.
   
   When I have a look at the autocenter in one of my forms it is set
to .T. ( in normal text, not bold, which indicates to me that this is
the default property ), I then manually change the property to .T.
(property text is now bold ) and run the form.

   Voila! it autocenters. I've since changed my baseclass to include
This.AutoCenter = .T. in the Load event and it works fine.
   
   My question is this, why when the baseclass has autocenter set
to .T. do forms that are derived from this baseclass not autocenter?
I've changed the height property in the Form to be different than
that of the base class and I wonder if because of this it's no longer
respecting the base classes autocenter?
   
Regards,
   Gavin...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform