Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5 EditBox: Any way to tell how many lines?
Message
De
12/08/1999 11:03:48
 
 
À
12/08/1999 10:34:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00250939
Message ID:
00252992
Vues:
19
You could try this: get your average character width in pixels with fontmetric, then divide the width of the edit box by that. Set your memowidth to that number. Then you can use memlines.
so:

nAvgCharWidth=fontmetric(6, form1.edit1.fontname, form1.edit1.fontsize)
nMemoWidth = form1.edit1.width/nAvgCharWidth
set memowidth to int(nMemoWidth)

hth -jack
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform