Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox Problem
Message
From
06/12/2004 07:16:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/12/2004 05:51:49
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00967077
Message ID:
00967105
Views:
17
It seems more practical to me to use a scrollbar. That way, the user can write any amount of text, and the control will not cover other controls.

You could also make your EditBox (not TextBox) somewhat bigger when it receives the focus (GotFocus), temporarily covering other objects. But that would make it difficult to select other objects with the mouse. The user could still exit with the TAB key.

If you really want to try to dynamically change the size, as you suggested, use the InteractiveChange() Event and check for len(This.Value). Better do this only when the object has the focus; otherwise, at LostFocus(), use some standard size, to avoid covering other objects.

>Dear Sir,
>
>I have a textbox with following properties
>
>hight=16
>width=200
>
>I can write 25 characters in it.
>
>When number of characters increases
>more than 25, the textbox height should be =32,double, and when
>more than 50, the textbox height should be =48,tripple, and so on.
>
>To do this what should I do?
>
>For some reasons I do not want to use Editbox instead of Textbox.
>
>Please help
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
Reply
Map
View

Click here to load this message in the networking platform