Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label.AutoSize
Message
De
16/04/2008 14:11:29
 
 
À
16/04/2008 12:33:02
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:
01311245
Vues:
25
* Method SetCaption
LPARAMETERS tcCaption
lcOldCaption = This.label1.caption ---> "Action Text"
lnOldWidth = This.label1.Width -------> 57
This.label1.Caption = tcCaption ------> "Update Chassis Information"
lnNewWidth = This.label1.Width -------> 57 ??????????
This.Width = This.Width + (lnNewWidth - lnOldWidth)


Try this instead:
LPARAMETERS tcCaption
lcOldCaption = This.label1.caption ---> "Action Text"
lnOldWidth = This.label1.Width -------> 57
This.label1.Caption = tcCaption ------> "Update Chassis Information"
This.label1.Autosize = .F.
lnNewWidth = This.label1.Width -------> 
This.label1.Autosize = .T.
This.Width = This.Width + (lnNewWidth  - lnOldWidth)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform