• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. SWT Buttons > Creating Toggle Buttons

6.8. Creating Toggle Buttons

SWT.TOGGLE-style buttons look like push buttons, but behave like checkbox buttons in that they stay pushed when clicked. This enables you to create buttons that provide the user with the same look as SWT.PUSH buttons, but provide them with a visual indication that the button has been clicked.

6.8.1. How do I do that?

Creating an SWT.TOGGLE button is, once again, just a matter of specifying the correct style:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint