[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Dotted lines in SWT Tree

The only exception to this on win32 is if the Tree is created with style
SWT.FULL_SELECTION, then the hierarchy lines are not shown (this is an odd
windows native behaviour that can be seen in the Problems view).  However,
trees on some other platforms never show hierarchy lines, and the users
don't seem to have problems seeing the item relationships.

Grant

"Tom Schindl" <tom.schindl@xxxxxxxxxxxxxxx> wrote in message
news:eg86id$ps2$1@xxxxxxxxxxxxxxxxxxxx
> Hi,
>
> Eldar schrieb:
> > Hi.
> >
> > I need to display dotted lines in SWT Tree control
> > (org.eclipse.swt.widgets.Tree) to visually indicate relationship between
> > parent and child nodes (like it does standard windows tree control
> > "SysTreeView32"). As I found out, the Tree control does not have the
> > built-in ability to do this.
> > On of the possible ways to  solve the problem is to use icons
> > representing these lines. But this approach is not acceptable because
> > indentation size of child rows is too large and dotted lines looks
> > teared off from expand/collapse button. And I don't see a way to change
> > the size of indentation.
> >
>
> Well my trees do have dotted lines by default on win32 the only thing
> discussed since then is how to remove those lines.
>
> http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg27815.html
>
> What's win32 are you using, SWT simply uses the default implementation.
>
> > Another way is to place dotted lines in another column, which I am using
> > currently, but this also does not satisfy my needs.
> >
> > I wonder, does the Tree control really has no ability to display dotted
> > lines? Does anyone ever meet this problem and how did you solve it?
> >
> > Thanks in advance.
> >
> >
>
> Tom