Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5 EditBox: Any way to tell how many lines?
Message
From
12/08/1999 11:03:48
 
 
To
12/08/1999 10:34:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00250939
Message ID:
00252992
Views:
18
You could try this: get your average character width in pixels with fontmetric, then divide the width of the edit box by that. Set your memowidth to that number. Then you can use memlines.
so:

nAvgCharWidth=fontmetric(6, form1.edit1.fontname, form1.edit1.fontsize)
nMemoWidth = form1.edit1.width/nAvgCharWidth
set memowidth to int(nMemoWidth)

hth -jack
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform