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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Goto Forum:
Current Time: Sun Jun 08 09:35:45 EDT 2025
Powered by FUDForum. Page generated in 0.10980 seconds
|