Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize container
Message
De
15/04/2008 12:36:33
 
 
À
14/04/2008 20:46:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01310584
Message ID:
01310757
Vues:
8
>This should (I hope) be fairly simple, but I can't quite see the answer.
>
>I have a container class. It has an image and a label inside it.
>
>The label is set to Autosize = .T.
>
>When the width of the label is changed (a new caption is assigned) I would like the container to resize itself to be the width of the image + the width of the label.
>
>What event, method, etc gets the code to do this?
>
>Thanks again to all..........Rich

"I would add an assign method to the label's Caption property and put the code to resize the container there"

Thanks Marcia and Naomi......

That's what I thought but I couldn't find a way to create the method.

It's a new day so I re-read help again and finally found (don't know how I missed it before) that you can't do that in the form designer to a control on the form.

I sub-classed the label and was able to add the method there. All is OK now.

Muchly appreciated...........Rich
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform