Avatar

Level 8

Well, if you truly need it before the layout event fires, the only thing I could suggest is using a mono-spaced font style like courier, in which the width of all characters are the same. Then count how many characters can fit on a line and divide that by the length of the string to get the number of lines.

nLines = myCell.rawValue.length/intCharactersInALine

Kyle