Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] SWT Styledtext word wrap

Hi

styledtext component has the ability to wrap a text. 

lets say I have following text in the widget:

| protected area.....                       |
|  word word word word longword  |
|  longword X longword longword   |
| protected area.....                       |


the X in second line marks location of cursor.

if I start to type at that location, after few characters, the last word will be moved to next line..., so the result will be: 

| protected area.....                       |
|  word word word word longword  |
|  longword newword longword      |
|  longword                                    |
| protected area.....                       |

where exactly is this handling hidden in code? trouble is, that first and last line, marked as protected area has to be handled in a different way, and I need to identify, where unprotected area starts and ends.. both location and line.

thanks a lot in advance for help

marek


Back to the top