Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically resizing the edit box based on the Strin
Message
From
30/11/2006 18:31:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/11/2006 17:49:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01173919
Message ID:
01173933
Views:
7
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform