>>Do you have AutoSize=.t. for that label?
>
>Yes, that's what I need.
Try ThisForm.MyLabel.AutoSize=.t. (even if the AutoSize prop is already .t.) immediately after you change the caption. This should force the recalculation of the width right after you change the caption. I don't know why, but sometimes it is a delay between the moment when the text is changed and the moment when the width is recalculated.
Vlad
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