Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make edit box grow in height?
Message
 
 
À
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:
01194586
Vues:
15
>>>
>>>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().

Thank you Hilmar. This should get me on the right track.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform