Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I center a label on the form
Message
De
27/11/1997 09:13:48
 
 
À
27/11/1997 08:58:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00062470
Message ID:
00062564
Vues:
37
>The Width property doesn't return a wrong value. But since your label has Autosize = .T., the label will change its width each time you change the label.
>
>But the Width change due to Autosize is not instantaneous. Also, the Width will not change if the label is not visible, but only when the label will become visible. (There are several cases when the label is not visible, not only when Visible = .F.)
>
>Try to put your centering code in the label's Refresh method. It might work, depending on your "rest of the code". (It doesn't work if the screen is locked, for ex.)

I couldn't put the centering code in the label's Refresh() method, because a label don't have a Refresh() method :)

Is there any other function that return the size of the label?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform