Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Grow an Edit Box
Message
From
26/09/2008 16:52:22
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01351074
Message ID:
01351118
Views:
20
>I need to have an edit box extend vertically if the user enters more text than will fit. The edit box will not have scroll bars. There will be a limit to the size and I can easily handle that part. I'm just not sure of the best way to handle the auto sizing. Is there some event that gets triggered when the text goes below the box? I thought of using memlines() but is there an easier way?
>TIA

I think you're on the right track with MEMLINES() combined with FontMetric() and the Height of the editbox to see how many rows you have room for.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform