nvwildfire
Technical User
My dilemma is that the software I am using (ArcMap 8.2) does not have word wrap for its text elements. So when I have a user enter a bunch of text on a form and then when I try to place that text on a map as a text element (basically a label) the text will extend out until the end of the string is reached, which is generally a couple of inches off of the map page if they enter a paragraph.
What I would like to do is write some code that will through several iterations wrap the text based on a length that I find acceptable. I can not seem to figure out how to determine the actual width of the text given its size and font (i.e. 12 point Arial). Is there a way to get the width of a string or text in a textbox? If I can get past the width part I think I can figure the rest of the code out.
Any help would be greatly appreciated.
Karl Krauter
What I would like to do is write some code that will through several iterations wrap the text based on a length that I find acceptable. I can not seem to figure out how to determine the actual width of the text given its size and font (i.e. 12 point Arial). Is there a way to get the width of a string or text in a textbox? If I can get past the width part I think I can figure the rest of the code out.
Any help would be greatly appreciated.
Karl Krauter