Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Grow an Edit Box
Message
 
À
26/09/2008 16:52:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01351074
Message ID:
01351164
Vues:
26
>>I need to have an edit box extend vertically if the user enters more text than will fit. The edit box will not have scroll bars. There will be a limit to the size and I can easily handle that part. I'm just not sure of the best way to handle the auto sizing. Is there some event that gets triggered when the text goes below the box? I thought of using memlines() but is there an easier way?
>>TIA
>
>I think you're on the right track with MEMLINES() combined with FontMetric() and the Height of the editbox to see how many rows you have room for.
>
>Tamar

Tamar,
I'm not sure just how many of your books I have and sessions of yours that I have attended. I am sure if you don't know of a better way than MEMLINES() then that is most likely the answer.
Thanks for the help.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform