Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement