[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: TreeItem with no checkbos

Alexandros,

The SWT.CHECK style will apply to all items in a Tree or Table; it's not
supported to specify only a subset of the items to have checkboxes.

As a side note, it's strange that you say you're creating your items with
style CHECK but your Tree with just SINGLE.  CHECK is a style that is meant
to be applicable to Trees and Tables, not to their individual items.  What
you're doing should result in no checkboxes since TreeItems should just
ignore the CHECK style.

Grant

"Alexandros Karypidis" <akarypid@xxxxxxxxxxxxx/\m.com> wrote in message
news:d840uc$gvq$1@xxxxxxxxxxxxxxxxxxx
> To re-state the problem:
>
> I have an Tree which has style SWT.SINGLE.
> Some TreeItem top-level entries with style SWT.CHECK
> Some TreeItem second-level entries with style SWT.NONE
>
> Now, the second-level entries inherit SWT.CHECK from their parent. I want
> them not to do so. How can this be done?
>
> Alexandros Karypidis wrote:
>
> > I have a tree in which top-level nodes have a checkbox (SWT.CHECK).
> >
> > Their children also have the checbox, even though I do not specify this
in
> > their constructor. How can I make them NOT have a checkbox?
>
> -- 
> Alexandros Karypidis
> UTH, Computer & Communication Eng. dept.