How do I measure width of a string

Quote
"Ken Carrick" <kgcar...@mbay.net> writes:

> > lest...@global.co.za (Lester Hanger) wrote in article
> <573445$...@osprey.global.co.za>...
> > I want to set the column width of a StringGrid to fit the width of the
> > heading.  How do I determine the width of the string in order to do
> > this?

> Try
> Length(String) ;

Surely, lesterh must have wanted the width of the string in pixels.
The Canvas.TextWidth method or GetTextExtent function would be just the ticket.

-Chris Snell
 cesn...@wownet.kosone.com