Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of text rows in Editboxes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227418
Message ID:
00227430
Vues:
22
>I have an editbox in a form, the edit box can hold small amount of text or a large amout of text, this edit box won't have a scroll bar, I need to know how many lines of text are showing be in the text box in order to programaticly resize the height of the box to hold exacty that amount rows.
>Any tips?

It's a lot of work. You'll need to look at SET MEMOWIDTH which is based on the DOS 80 column fixed font text. Then you need to compensate with SYSMETRIC and FONT() to get the right adjustments.

Why not use vertical and horizontal scroll bars and make the form sizable so the user can grow/shrink the editbox for large/small memos?
-TomC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform