Style | Description |
SWT.ARROW | Creates a push button that displays an arrow. |
SWT.CHECK | Creates a checkbox. |
SWT.PUSH | Creates a push button. |
SWT.RADIO | Creates a radio button. |
SWT.TOGGLE | Creates a push button that preserves its pushed or nonpushed state. |
SWT.FLAT | Creates a push button that appears flat. |
SWT.UP | When combined with SWT.ARROW, displays an upward-pointing arrow. |
SWT.DOWN | When combined with SWT.ARROW, displays a downward-pointing arrow. |
SWT.CENTER | Centers the associated text. |
SWT.LEFT | Left-aligns the associated text. When combined with SWT.ARROW, displays a leftward-pointing arrow. |
SWT.RIGHT | Right-aligns the associated text. When combined with SWT.ARROW, displays a rightward-pointing arrow. |
17.9.Button | ||||
17.9.1. | Introducing Button and Button Styles | |||
17.9.2. | Push Button | |||
17.9.3. | CheckBox Button | |||
17.9.4. | Toggle Button | |||
17.9.5. | RadioButton | |||
17.9.6. | FlatButton | |||
17.9.7. | ArrowButton | |||
17.9.8. | Add Radio Buttons to a Group | |||
17.9.9. | Select a Radio Button | |||
17.9.10. | Setting Button selection | |||
17.9.11. | Add Image to Button | |||
17.9.12. | Add Radio Buttons to a Composite to form a group | |||
17.9.13. | LEFT, RIGHT, CENTER: These three styles specify the text/image alignment in buttons. | |||
17.9.14. | To get and set a button's text label | |||
17.9.15. | You can include the mnemonic character in the text label. | |||
17.9.16. | To escape the mnemonic character &, you can double it and a single '&' will be displayed. | |||
17.9.17. | Set the alignment of the text/image label of a button |