Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to predict the size of a label.caption in pixel?
Message
De
13/12/1999 20:54:03
 
 
À
13/12/1999 16:35:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00302272
Message ID:
00303111
Vues:
53
>>Hi Ed,
>>
>>>You may better set Label.AutoSize=.T. and check Label.Width property after each changing of its caption.
>>
>>This won't always work, because VFP recalculates the width of a label when it displays it, not when you change the caption.
>>
>>Christof
>
>It works in my experience. VFP apparently is smart enough to re-evaluate when you change the caption.

Also, if it even does not work in straightforward way, then Timer solution will always help.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform