Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label.AutoSize
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01310962
Message ID:
01311074
Vues:
24
>Rich,
>
>Create method SetCaption for container class and use it instead of settting label caption directly
>
>* Method SetCaption
>LPARAMETERS tcCaption
>lnOldWidth = This.label1.Width
>This.label1.Caption = tcCaption
>lnNewWidth = This.label1.Width
>This.Width = This.Width + (lnNewWidth  - lnOldWidth)
>
>

Funny, I believe I used the same idea in one of my applications...
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform