Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I center a label on the form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00062470
Message ID:
00062556
Vues:
40
>This works for me. Where do you have this code. I put it in the activate of the form.

I put it in the Init(), since it will not move afterward.

My problem is that the text isn't centered on the form.
I noticed a strange behaviour: in design mode, when I enter the text in the caption field manually, the width of the label is 54.
If I put WAIT WINDOW Str(THISFORM.lblMessage.Width) after initializing the field with the same text, it give Width = 40.
So that's why the text isn't centered.
My question now: how come the width property at run time return a false information?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform