General information
Category:
Forms & Form designer
Sorry, I answered too fast without reading close enough. (I also replied once to the wrong message, not my day <g>)
Assuming your forms ScaleMode is set to pixels can you do something like this:
Get the width of the editbox.
Use FontMetric to get the average width for the font your using.
Multiply this average times the len(editbox.text) to get a width.
Divide this with by the number of columns (the width) in your editbox.
Round up.
>This doesn't seem to work for me, as it fails to take into account line wrapping within the editbox. (MEMLINES() is returning 2 for an edt that has 10 lines of wrapped text.
>
>-- jas
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only