I suggest using the TCanvas.TextWidth routine to determine the width of a text object. If you just need an approximate value, you can use the Canvas property of a TBitmap. Once you assign the proper font, the value will be given to you in Screen Pixels so it may need to be converted after that.
Comments
I suggest using the TCanvas.TextWidth routine to determine the width of a
text object. If you just need an approximate value, you can use the Canvas
property of a TBitmap. Once you assign the proper font, the value will be
given to you in Screen Pixels so it may need to be converted after that.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com