[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: TableViewer and SWT.CHECK
|
Hi David,
There's one aspect of your description that's a bit strange: at the swt
level the centering of item text in the first column is never done (all
platforms) because of a platform limitation on win32. Column 0 always has
left-alignment regardless of the style it's created with. I wonder if
TableViewer is doing any magic to get around this, like creating a 0-width
first column (?). Table.setHeaderVisible(true) could provide a clue here if
you're not already doing this.
Under normal circumstances an item's checkbox should never overlap with its
first column's text. Are you able to create a snippet (template:
http://www.eclipse.org/swt/faq.php#whatisasnippet ) that shows this
happening?
Grant
"David Huebel" <davidhuebel@xxxxxxxxxxx> wrote in message
news:fvdin1$1ah$1@xxxxxxxxxxxxxxxxxxxx
> When I create a TableViewer with SWT.CHECK, the check box renders on top
of
> the text in the first column of the table. (The text is centered, and the
> check box appears to be left-justified, so if I enlarge the column, the
> check box appears to the left of the text.)
>
> Am I doing something wrong, or is this the "correct" behavior? Is there a
> way to make the check box render in its own column, or do I need to
> implement this myself by adding an extra column with a CheckboxCellEditor?
>
> -David
>