Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of text rows in Editboxes
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00227418
Message ID:
00227430
Views:
21
>I have an editbox in a form, the edit box can hold small amount of text or a large amout of text, this edit box won't have a scroll bar, I need to know how many lines of text are showing be in the text box in order to programaticly resize the height of the box to hold exacty that amount rows.
>Any tips?

It's a lot of work. You'll need to look at SET MEMOWIDTH which is based on the DOS 80 column fixed font text. Then you need to compensate with SYSMETRIC and FONT() to get the right adjustments.

Why not use vertical and horizontal scroll bars and make the form sizable so the user can grow/shrink the editbox for large/small memos?
-TomC
Previous
Reply
Map
View

Click here to load this message in the networking platform