Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make edit box grow in height?
Message
From
11/02/2007 15:14:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01194581
Message ID:
01194585
Views:
11
>>
>>You can change the .Height property, perhaps in the InteractiveChange() Event. But here is another idea: How about making it higher on entry (GotFocus()), and smaller on exit
>(LostFocus())?
>
>Well, I don't want the editbox to become smaller in height. Actually I want it to grow until it will show 4 lines (or some set number of lines). The idea of using InteractiveChange is nice but how do you determine in this method if the entire length of the editbox has entry?
>
>Thank you for your help.

Well, since you will pressumably use a variable-sized font, you would have to do some calculations with TxtWidth().
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform