Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AutoSize in run-time
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00564476
Message ID:
00564488
Vues:
22
>>Hi everyone,
>>
>>It seems to me, that AutoSize works only in design-time and not in run-time, when I change Label's caption. How can I make it work in run-time? How can I change width of label to be exact?
>>
>>Thanks a lot in advance.
>
>When you are changing the width of a label either by autosizing it or changing the actual caption then setting the width property, you will not get the NEW width value until you set the Visible property of the label to true. I have had to incorporate this workaround in the Load of my form for setting multi-language values of captions. However, since this is in the Load, the form is not yet visible so I do not have ugly label flashing on the screen.

Thanks, adding visible = .t. did the trick! I should ask this question earlier, would save me a lot of grief.

Thanks a million!
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform