Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine TextBox width?
Message
From
21/09/2009 07:21:21
 
 
To
21/09/2009 07:14:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01425392
Message ID:
01425410
Views:
52
>>It is possible - untested though - that form.TextWidth() and form.TextHeight() give a better result than the average fontsize. The only drawback is that you have to set the form's font attributes to match those of the textbox
>
>Bit of ugly if you run through all textboxes to switch all those form stuff .... But if my method fail I will remember. ^_______^

Yes, I wrote that there was a drawback - but it returns the exact width and not just an average (^_\\\)
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform