Re: Add overflow indicator to text
Alex Zavatone
Quincy, your observation reminds me of how Quark Xpress handled this in circa 1989. It was a surprisingly nice indicator that “there is more to this text box”. I think they may have put a small bottom-right box indicator and then added a chain link graphic in the box it the text container was linked to another text container. Thinking of Steve’s original problem and ideas solution, I am wondering about the red ellipsis as well and thinking just how much of this will already be solved by the NSTextContainer or UITextView. What I mean is that a UILabel will display an ellipsis at the end when it has the following settings:
In that case, the text is already properly truncated for you. The only thing would be needed would be to change the color of the ellipsis that is displayed at the end or find the position of the last character and draw your own ellipsis over it… Of course, that’s on iOS with a UILabel. I’m not sure how a NSTextContainer or UITextView would handle this. Thinking about how this might look to the user, a red color often is associated with something being wrong, or a destructive action, like deleting data, as we all know. The trick might be getting it to work first, then once you are able to get the character position of the ellipsis, simply figuring out what you want to display there. Quincy’s suggestions seem to be pretty user friendly and also more straightforward to implement though. Good luck. Alex Zavatone
|
|