Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When is autocenter not autocenter
Message
 
 
À
02/04/2003 20:50:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00772234
Message ID:
00773389
Vues:
10
>Good point, bad code example.
>
>However I didn't discover this by defining classes of forms and their subclasses in code.
>
>I left out the seminal point. These classes are visual classes in a library. If I design a form based on my 1st level form subclass (not my base class), and, at design time, override the autocenter property so that autocenter is false, the form will show centered when run contraty to my wishes.
>
>Ah but if I design a form from my base form class, that form behaves as expected, it shows at the top most and left most position.
>
>This is eminently reproducable.
>Create form1 as form in myforms.vcx (set autocenter to .F.)
>Create form2 as form1 in myform.vcx
>Design a form based on form2.
>Set AutoCenter to .F. on the property sheet.
>Run the form.
>It will show centered.
>
>What is up with that?

See BUG: Form Cannot Override Parent Class AutoCenter Setting mskb #Q191998.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform