[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Using delimiters for text wrapping in TextLayout

Hi,

I'm using a TextLayout to draw some text, specifically, I'm doing this inside a table using an owner draw label provider.

I want to have the text wrap inside the column. I'm using the setWidth and that works. Here's the question - I want to control the delimiters which will be considered a "wrapping point" (I'm not sure what's the right term here). In the default behavior, white spaces are breaking the text into segments that will be wrapped as a whole, given they are smaller than the given width. I want other characters to do that as well. Is this possible? Can I manually control the delimiters or set segments?

Thanks,
Zviki