Only 1 column of TreeViewer in SashForm should grab new space [message #1612938] |
Thu, 12 February 2015 09:48 |
Simon Laffoy Messages: 19 Registered: January 2015 |
Junior Member |
|
|
HI,
I have a view with a SashForm. In the left panel of the SashForm is a TreeViewer with three columns (each a TreeViewerColumn with a TreeColumn). When I resize the sash form all three columns grab an equal share of the space. What I would like to happen is for only the first column to grab the new space and the second and third column to be unchanged.
I would like the user to have the option to resize the 2nd and third columns if they wish so using the setReziable(false) method of the TreeColumn is not an option.
As a solution I have added a ControlListener to the sash form so that, on resizing, the 2nd and 3rd column keep a constant size. However I am wondering if I can specify which columns may grab space using just the TreeViewer or it's contents, and not by resorting to adding listeners to an outer container.
Thank you
[Updated on: Thu, 12 February 2015 21:07] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03366 seconds