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:49:26
 
 
To
30/11/2006 18:35:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
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:
01173940
Views:
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
>
>Hope this helps:
>http://www.fox4um.com/viewtopic.php?pid=539#p539
>Cetin

Not even close. After recently wrestling with exactly this problem, your solution doesn't take into account font.bold (which does effect some font's width) nor does it account for MEMLINES() not being an exact silence with proportional fonts. Also the .Margin property has some bearing on the number of lines.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform