tags:

views:

30

answers:

0

I would like to add a toolbar to my SWT application. The requirements are as follows:

  • I should be able to create several toolbars
  • Toolbars should be draggable
  • I want an option to hide some of the toolbars
  • I want in general only one line of toolbars
  • I need to store/restore the system state after application restart.

I used SWT.CoolBar to implement this. I've tested it with 2 toolbars. I have a CoolItem to include each toolbar. My problems are:

  • The dragging happens but only with another line. No place switching between toolbars on the same line.
  • The size of the toolbar (coolbar) is ~ 1/3 of the available space.

So,

  1. How do I make the toolbar to be one-liner? (the multiple-line feature should still be supported if necessary).
  2. How do I make rearranging on one line only?

Thanks.