Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Problem
Message
De
06/12/2004 07:16:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/12/2004 05:51:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
00967077
Message ID:
00967105
Vues:
9
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform