Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Grow an Edit Box
Message
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:
01351313
Vues:
24
Well it looks like this is much more complex than I thought. I think I will just give the user a max size edit box with a max chr count and base it on the font size and type they select. This will be uploaded to a web page with a few text areas and I wanted to show the lower text areas (edit boxes on the VFP screen) moving up or down depending on how much they entered. They will see the final result quickly enough on the web.

Bo's code almost works. It does the resize but the first time it adds to the text box height the top line scrolls off the top and it does not catch the enter key.
Many thanks to Bo for the code and to Sergey, Tamar and Dragan for the links and hints.

John.


>Hi John,
>
>Check Creating an autosizing editbox Thread #998157 Message #998216 for an interesting idea.
>
>>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?
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