Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically Determine List.ColumnWidths
Message
De
26/07/2007 14:04:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01243619
Message ID:
01243877
Vues:
34
>Kevin,
>
>Try
>
>
>	iSize = TXTWIDTH(replicate('O',fsize(FIELD(iColumn))), sFontName, iFontSize) * Fontmetric(6, sFontName, iFontSize)
>
Um, yes, that's what I always forget and have to add later - that txtwidth() function (or .textwidth() method) return the text width in average characters, and that it needs to be multiplied with average character width to get pixels.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform