Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make edit box grow in height?
Message
De
11/02/2007 15:14:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01194581
Message ID:
01194585
Vues:
10
>>
>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform