[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Tree with multiple cols - Why?

If you have a case where some code works for TableTree but doesn't for Tree
with columns, can you post the code?  It might be a bug.

"kumuksu" <kumuksu@xxxxxxxxxxx> wrote in message
news:dalvmu$lh3$1@xxxxxxxxxxxxxxxxxxx
> Guess I know why, the hit test fails because the cols > 0 are not part of
> the tree. By adding the full selection the row is being extended to
include
> other cols. But is that enough?
>
>
> "kumuksu" <kumuksu@xxxxxxxxxxx> wrote in message
> news:dalv4r$kmb$1@xxxxxxxxxxxxxxxxxxx
> > The getItem method in the Tree implementation does the following check
> which
> > seems to be the reason why I cannot select or even get the cell item
> > clicked. Why?
> > if ((style & SWT.FULL_SELECTION) != 0 || (lpht.flags & OS.TVHT_ONITEM)
!=
> 0)
> > { . . .
> >
> > "kumuksu" <kumuksu@xxxxxxxxxxx> wrote in message
> news:dak7dt$nv5$1@xxxxxxxxx
> > pse.org...
> > > I have a tree with multiple cols. I would like to select any given
cell
> > > without selecting the entire row it belongs. If I use the SWT.Single
> > style,
> > > it allows selection only on the first col. I didnt see any other style
> in
> > > the source. What am I missing? TreeTable has been deprecated since
3.1,
> > > hence the use of a tree.
> > >
> > >
> >
> >
>
>