| |
17. 42. 1. 创建StyledText控件 |
|
StyledText(Composite parent, int style)
|
|
StyledText Styles |
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. |
|
|