Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table - LabelProvider - Images
Table - LabelProvider - Images [message #443024] Thu, 16 September 2004 15:34 Go to next message
Mr. Minou is currently offline Mr. MinouFriend
Messages: 3
Registered: July 2009
Junior Member
Hello,

When I want to display an image not in the first column of a (swt) table
the text from column one always has some indent.

I used the TableViewerExample and moved the "completed column" with the
checkbox image from column 1 to column 3.
The effect can easily be reproduced when the getColumnImage returns an
image not for the first column.
public Image getColumnImage(Object element, int columnIndex) {

if (columnIndex == 2)
return getImage(CHECKED_IMAGE); // getImageDescriptor + createImage
return null;
}

In a news group articel from 2002 I read:
"The image slot in the first column of the Table is reserved for TableTree
to
display the +/- image".

Does this mean that when in at least on column will contain a image the
first column will get this text indent?

I work with Eclipse 3.0.0

Regards
Minou
Re: Table - LabelProvider - Images [message #448626 is a reply to message #443024] Wed, 12 January 2005 14:52 Go to previous message
Arny George is currently offline Arny GeorgeFriend
Messages: 5
Registered: July 2009
Junior Member
I have the same problem as you. please tell me if you get the answer.

Hello Minou,

> Hello,
>
> When I want to display an image not in the first column of a (swt)
> table the text from column one always has some indent.
>
> I used the TableViewerExample and moved the "completed column" with
> the
> checkbox image from column 1 to column 3.
> The effect can easily be reproduced when the getColumnImage returns an
> image not for the first column.
> public Image getColumnImage(Object element, int columnIndex) {
> if (columnIndex == 2)
> return getImage(CHECKED_IMAGE); // getImageDescriptor +
> createImage
> return null;
> }
> In a news group articel from 2002 I read:
> "The image slot in the first column of the Table is reserved for
> TableTree
> to
> display the +/- image".
> Does this mean that when in at least on column will contain a image
> the first column will get this text indent?
>
> I work with Eclipse 3.0.0
>
> Regards
> Minou
Previous Topic:SWT dll info
Next Topic:DND: can't set up DragSource as in article example
Goto Forum:
  


Current Time: Sat May 15 23:47:34 GMT 2021

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

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

Back to the top