Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label.AutoSize
Message
De
15/04/2008 20:56:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Label.AutoSize
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01310962
Message ID:
01310962
Vues:
63
I've created a container class. It has a label class inside it. The label class has AutoSize set to TRUE. It also has an Assign method
LPARAMETERS vNewVal

THIS.CAPTION = m.vNewVal
This.Parent.Width = this.Width + this.Parent.image1.Width + 2
If I step through this code, the container resizes properly.

However, without stepping through the code, the Width of the label does not reset when it is given a new value. It retains the width of the label in the class definition.

I've tried putting This.Refresh and This.Parent.Refresh at various points in the method, but to no avail.

All help muchly appreciated..........Rich
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform