0

I am currently working with the SWT package in Eclipse. Is it possible to create a resizable control within a composite control.

For instance, if I have a tree control which I would like to expand, but in order to view the sub tree items I would like to 'click and drag' the border of the tree to resize it, much like the draggable divider in the Eclipse help website.

Jackson
  • 3,476
  • 1
  • 19
  • 29

1 Answers1

1

I think the SWT Sash is what you are looking for.

Here is a good example on how to use it.

EDIT:

Just found that SashForm is much easier to use. See LINK for a good example.

Baz
  • 36,440
  • 11
  • 68
  • 94
  • 1
    That is good, but Sash only allows resizing in one direction (either horizontally or vertically). I wonder if there is a way to make it resizable in either direction, like text boxes in browsers. – user118967 Apr 20 '15 at 05:56