Get the height of multiline text field with word wrap
Posted: Mon Aug 04, 2014 5:03 pm
Hey All,
I have a text field that has the fixedLineHeight set to false and is set to word wrap. Is there a way to get the height of a line of text when the field is wrapping text to make it multiple lines high. I don't know how many lines will be in the text field and since it is text that is wrapped livecode sees it as only 1 line of text so I can't simply divide the formatted height of the text by the number of lines. I have been looking at text properties but can't seem to find anything to give me the height of a line of text in pixels.
I have a text field that has the fixedLineHeight set to false and is set to word wrap. Is there a way to get the height of a line of text when the field is wrapping text to make it multiple lines high. I don't know how many lines will be in the text field and since it is text that is wrapped livecode sees it as only 1 line of text so I can't simply divide the formatted height of the text by the number of lines. I have been looking at text properties but can't seem to find anything to give me the height of a line of text in pixels.