|
Re: Hide/Show a TreeColumn in a Tree [message #332808 is a reply to message #332806] |
Mon, 10 November 2008 16:22 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 11/10/2008 11:15 AM, gdollard wrote:
> Hi All,
>
> I have a TreeViewer with a few TreeColumns assigned.
> Can anyone point me in the direction of finding out how to implement the
> ability to toggle between hiding one particular
> TreeColumn and making it visible again?
>
> I want the user to be able to view/hide the last TreeColumn in the Tree.
>
> Any ideas please?
I think you can just can set the column's width to 0 to hide it.
The JFace snippets page
(http://wiki.eclipse.org/index.php/JFaceSnippets) has an example of
showing/hiding columns with a nifty animation effect (Snippet 017).
Hope this helps,
Eric
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03288 seconds