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

Chapter 15. SWT CoolBars > Using ToolBars with CoolBars

15.5. Using ToolBars with CoolBars

A close examination of CoolbarShellExample reveals several issues. First, Button objects associated with the CoolBar are unable to use both text and an image, as was the case with ToolBar. Attempting to use both text and image results in only text being visible. Second, since the user can move CoolItems around on the CoolBar, you lose the ability to maintain functional groups of buttons unless you lock the CoolBar (which negates many of the reasons for using it in the first place).

These issues are easily solved once you realize that it is possible to add a ToolBar to a CoolBar as a single unit.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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