Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IntegralHeight != AutoSize for an edit box?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00644408
Message ID:
00644761
Vues:
17
Brian,
>
>>It's only for display.
>
>So you could use a label instead of an edit or textbox and set it to autosize = .t. and wordwrap = .t. and it will resize the way you want it to.
>
>If your users must be able to cut/copy text or you need to have databinding, you could additionally put an invisible label in the grid cell, which is filled with the same content as the textbox. Then you could get the height setting from the label and apply it to your textbox. Maybe you'll have to add some extra pixels to the height, since the textbox has an inner and outer border. And ... use a textbox, not an editbox. This way you get rid of the scrollbars (as Chris already suggested).
>
>Just an idea ... not tested.
>
>HTH,
>Armin


Hi Armin,

Humm... I was thinking of a label originally, but wasn't sure how to keep the width from growing. Perhaps setting both the autosize and wordwrap to .t. as you suggest will do the trick. I like the idea of the invisible label too. When I get back to work on Monday, I'll report back. Thanks for the ideas.


- Brian


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform