treeviewer resize issue [message #1065796] |
Thu, 27 June 2013 13:51 |
n d Messages: 11 Registered: February 2013 |
Junior Member |
|
|
Hi all,
I have 3 treeviewer objects in one view in a row like disposition and I want them to increase their size equally if I maximize/minimize the view/eclipse window.
here is my code:
Composite composite = new Composite(parent, SWT.NONE);
composite.setLayout(new GridLayout(1, false));
{
Composite composite1 = new Composite(composite, SWT.NONE);
composite1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
composite1.setLayout(new GridLayout(1, false));
treeViewer1 = new TreeViewer(composite1, SWT.BORDER);
tree1 = treeViewer1.getTree();
tree1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
tree1.pack();
composite1.pack();
}
...
(the block is similar for treeviewer 2 and 3)
However, when I maximize/minimize the view or the eclipse window and the contents of a certain tree are bigger than the viewing space, that tree viewing space gets bigger than the others).
Is there a way to prevent this resize behaviour due to content size? or is there something that I'm missing
Thanks a lot,
ND
-
Attachment: pic_2.jpg
(Size: 23.68KB, Downloaded 1325 times) -
Attachment: pic_1.jpg
(Size: 20.59KB, Downloaded 1353 times)
|
|
|
Powered by
FUDForum. Page generated in 0.62345 seconds