Posted by Johan P14205 on August 29, 2005
How can I calculate the length of a Delphi string in pixels, not in characters?
I want to adapt the length of some components to the length of certain strings. Some Delphi panels, bevels, shapes, and so on... must change their dimensions when some strings change on the form.
This is for a multi-lingual project; it is nicer if a button with "Why" on it should be not so wide as a button with "Pourqoui?" ;)
Related Articles and Replies