Skip to main content



      Home
Home » Newcomers » Newcomers » image in cell of table
image in cell of table [message #212735] Tue, 29 May 2007 15:09 Go to next message
Eclipse UserFriend
Originally posted by: jedlicka.poll.cz

Hi,
I have problem with image in cell of table. I have table viewer,
implemented label provider and content provider. One column in the table
has cell editor CheckboxCellEditor. I want to have in each row of table
(there is CheckboxCellEditor) other resolution image but doesn't work
(e.g. in one row of table image with resolution 30x16 pixel and in other
row image with 60x16 pixel...in same column).
How do I do?

Reason: I need offset text in cell (which has CheckboxCellEditor) so I put
into cell images (this image there is need) with various width in front
text. Simply I need in one cell text and image...and sometimes have text
and image offset in cell.

Thank you for advice.

Martin
Re: image in cell of table [message #212785 is a reply to message #212735] Tue, 29 May 2007 22:11 Go to previous messageGo to next message
Eclipse UserFriend
On Tue, 2007-05-29 at 19:09 +0000, Martin Jedlicka wrote:
> Reason: I need offset text in cell (which has CheckboxCellEditor) so I put
> into cell images (this image there is need) with various width in front
> text.

I'm sure there's a clean way to do this, but another hack you might try
in the meantime is putting various numbers of spaces in front of the
text.

Matt
Re: image in cell of table [message #212808 is a reply to message #212785] Wed, 30 May 2007 01:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jedlicka.poll.cz

I tried but I need in front of the text some image. And I don't know how
putting various numbers of spaces in front of the image which I have
implemented with "extends LabelProvider implements ITableLabelProvider".

Martin


Matt McCutchen napsal(a):
> On Tue, 2007-05-29 at 19:09 +0000, Martin Jedlicka wrote:
>> Reason: I need offset text in cell (which has CheckboxCellEditor) so I put
>> into cell images (this image there is need) with various width in front
>> text.
>
> I'm sure there's a clean way to do this, but another hack you might try
> in the meantime is putting various numbers of spaces in front of the
> text.
>
> Matt
>
Re: image in cell of table [message #212816 is a reply to message #212735] Wed, 30 May 2007 03:13 Go to previous message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

You will probably get a better answer in the eclipse.platform.swt newsgroup.

--
Derek


Martin Jedlicka wrote:
> Hi,
> I have problem with image in cell of table. I have table viewer,
> implemented label provider and content provider. One column in the table
> has cell editor CheckboxCellEditor. I want to have in each row of table
> (there is CheckboxCellEditor) other resolution image but doesn't work
> (e.g. in one row of table image with resolution 30x16 pixel and in other
> row image with 60x16 pixel...in same column).
> How do I do?
>
> Reason: I need offset text in cell (which has CheckboxCellEditor) so I put
> into cell images (this image there is need) with various width in front
> text. Simply I need in one cell text and image...and sometimes have text
> and image offset in cell.
>
> Thank you for advice.
>
> Martin
>
>
Previous Topic:Eclipse dying?
Next Topic:Agent Controller
Goto Forum:
  


Current Time: Sat Jun 07 22:55:44 EDT 2025

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

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

Back to the top