Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the width of a label control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01329988
Message ID:
01329990
Vues:
16
>If I allow the user to change the caption for a label control on a form, it would be nice to move the textbox to the right of it so that the label control does not overwrite it (or get overwritten by the textbox). Unfortunately, the width property does not reset if you change the caption (I have tried techniques to get it to reevaluate the width, but what I have tried so far is not working). Can I do this with a combination of fontmetric, txtwidth, or whatever? Probably can - there's always a way with VFP.
>
>Russell Campbell

All you need to do if you set this label AutoSize =.t. is to switch back and forth its visible property.

Also may be in VFP9 label.refresh() will work.
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