Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically resizing the edit box based on the Strin
Message
De
30/11/2006 18:31:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
30/11/2006 17:49:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01173919
Message ID:
01173933
Vues:
8
>Hi All,
>
>I have a Edit box and two command controls below this edit box. I need to increase the size of the edit box dynamically based on the String passed as a paramter and need to resize the form, push the control below the Editbox. this edit box is with No Scroll.
>
>
>Any help is highly appreciated.
>
>Thanks in advance
>
>-Venkatram

You could calculate, or at least estimate, the size required for the text, with the TextWidth function. But I would go the easy way, and just reserve a reasonable size, and use automatic scrollbars for anything larger.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform