Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically Determine List.ColumnWidths
Message
From
26/07/2007 14:04:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01243619
Message ID:
01243877
Views:
32
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform