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

Chapter 10. SWT Composites and Groups > Using Composite Class Styles

10.3. Using Composite Class Styles

Composite will accept several styles. The first is SWT.NO_BACKGROUND , which causes the Composite to be transparent. This is used to allow whatever is underneath the Composite, perhaps a background color or picture, to show through. SWT.NO_FOCUS can be used to prevent the Composite itself from gaining the input focus as the user tabs through controls on the window. Additionally, Composite can accept styles that apply to other widgets, such as SWT.BORDER, as illustrated by the previous example above.

As with all styles, you must experiment with different combinations until you derive the desired effect.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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