Constant | Description |
SWT.BORDER | Draws a border around the StyledText. |
SWT.SINGLE | Creates a single-line StyledText. |
SWT.MULTI | Creates a multiline StyledText. This is the default. |
SWT.H_SCROLL | Enables horizontal scrolling. |
SWT.V_SCROLL | Enables vertical scrolling. |
SWT.WRAP | Turns on word wrapping, trumping the horizontal scrolling style. |
SWT.READ_ONLY | Makes the StyledText read-only. |
SWT.FULL_SELECTION | Causes redrawing operations to redraw the full line instead of only the invalidated portion. |
17.42.StyledText | ||||
17.42.1. | Creating a StyledText Widget | |||
17.42.2. | Create a StyledText that scrolls vertically, wraps text, and displays a border: | |||
17.42.3. | Using the Clipboard | |||
17.42.4. | Draw a box around text | |||
17.42.5. | StyledText: embed images | |||
17.42.6. | StyledText: use gradient background | |||
17.42.7. | StyledText: embed controls | |||
17.42.8. | Getting Statistics: Caret Offset, Total Lines of Text, Total Characters and Current Line | |||
17.42.9. | Print StyledText out | |||
17.42.10. | Print to the default printer in a separate thread | |||
17.42.11. | Set page format for printing | |||
17.42.12. | Make a StyledText read-only | |||
17.42.13. | Limit the number of characters that the StyledText accepts | |||
17.42.14. | Replace Text Range | |||
17.42.15. | Understanding the Repercussions | |||
17.42.16. | A simple editor |