Skip to main content



      Home
Home » Eclipse Projects » Nebula » How to display a checkbox in front of the text in a cell ?
How to display a checkbox in front of the text in a cell ? [message #15605] Tue, 24 October 2006 06:07 Go to next message
Eclipse UserFriend
Hi All,

CTableTreeItem item = new CTableTreeItem(ctt, SWT.NONE);
item.setText(new String[] { "sales", "sales_domains"});

CTableTreeItem subItem = new CTableTreeItem(item, SWT.NONE, 1,
cellClasses);
subItem.setText(new String[] { "customer", "Al, Bob, Mark"});

Now how to show a check box before the cell containing data "Al, Bob,
Mark" ?

Rgds,
Kaniska
Re: How to display a checkbox in front of the text in a cell ? [message #15637 is a reply to message #15605] Tue, 24 October 2006 08:49 Go to previous message
Eclipse UserFriend
presently the easiest way to do this is to set the first image of the
cell to the appropriate checked or un-checked graphic.

a more ideal solution would be to create some sort of "check cell"
(maybe even containing a native SWT check box...?)

Checkboxes are pretty common to trees though, so I've filed an
enhancement request (#162064) - your comments would be appreciated.

cheers,
jeremy

Kaniska wrote:
> Hi All,
>
> CTableTreeItem item = new CTableTreeItem(ctt, SWT.NONE);
> item.setText(new String[] { "sales", "sales_domains"});
>
> CTableTreeItem subItem = new CTableTreeItem(item, SWT.NONE, 1,
> cellClasses);
> subItem.setText(new String[] { "customer", "Al, Bob, Mark"});
>
> Now how to show a check box before the cell containing data "Al, Bob,
> Mark" ?
>
> Rgds,
> Kaniska
>
>
Re: How to display a checkbox in front of the text in a cell ? [message #567628 is a reply to message #15605] Tue, 24 October 2006 08:49 Go to previous message
Eclipse UserFriend
presently the easiest way to do this is to set the first image of the
cell to the appropriate checked or un-checked graphic.

a more ideal solution would be to create some sort of "check cell"
(maybe even containing a native SWT check box...?)

Checkboxes are pretty common to trees though, so I've filed an
enhancement request (#162064) - your comments would be appreciated.

cheers,
jeremy

Kaniska wrote:
> Hi All,
>
> CTableTreeItem item = new CTableTreeItem(ctt, SWT.NONE);
> item.setText(new String[] { "sales", "sales_domains"});
>
> CTableTreeItem subItem = new CTableTreeItem(item, SWT.NONE, 1,
> cellClasses);
> subItem.setText(new String[] { "customer", "Al, Bob, Mark"});
>
> Now how to show a check box before the cell containing data "Al, Bob,
> Mark" ?
>
> Rgds,
> Kaniska
>
>
Previous Topic:How to display a checkbox in front of the text in a cell ?
Next Topic:PShelf now in Nebula
Goto Forum:
  


Current Time: Sun Jun 08 13:34:29 EDT 2025

Powered by FUDForum. Page generated in 0.04130 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top