Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating an autosizing editbox
Message
 
 
To
22/03/2005 17:05:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00998157
Message ID:
00998570
Views:
51
Malcolm,

Another thought that came to me today, is that if you size the edt with the scrollbar turned on and then when you've got the height where you want it resize the width down by the sysmetric(5) at the same time you turn off the scrollbars and the text shouldn't reflow causing an empty space at the bottom.

>Well, that's a very, very clever solution. Thinking outloud: I can loop expand my editbox one line (determined by fontmetric) at a time until the scroll bar indicates its inactive. I will have to adjust the width of my editbox to account for the scrollbar which I will then remove when I'm done. All behind the cover of LockScreen = True, of course.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform