Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Image position in TableViewer(Image position)
Image position in TableViewer [message #498207] Sun, 15 November 2009 21:34 Go to next message
Franck Lepretre is currently offline Franck Lepretre
Messages: 7
Registered: November 2009
Junior Member
Hi,

I created a Table linked to a model.
There are several images used at different column positions.
The images are always left aligned.
The setAlignment is only for the text.

Is there any other solution for this?

Thanks
Franck
Re: Image position in TableViewer [message #498212 is a reply to message #498207] Sun, 15 November 2009 22:12 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Franck,

I am positive you can find your solution in the Table section of the SWT
snippets page:

http://www.eclipse.org/swt/snippets/

Best regards,

Wim


> Hi,
>
> I created a Table linked to a model.
> There are several images used at different column positions.
> The images are always left aligned.
> The setAlignment is only for the text.
>
> Is there any other solution for this?
>
> Thanks
> Franck
Re: Image position in TableViewer [message #498260 is a reply to message #498212] Mon, 16 November 2009 08:52 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5329
Registered: July 2009
Senior Member
You need to use ower draw to position the image.

Tom

Wim Jongman schrieb:
> Hi Franck,
>
> I am positive you can find your solution in the Table section of the SWT
> snippets page:
>
> http://www.eclipse.org/swt/snippets/
>
> Best regards,
>
> Wim
>
>
>> Hi,
>>
>> I created a Table linked to a model.
>> There are several images used at different column positions.
>> The images are always left aligned.
>> The setAlignment is only for the text.
>>
>> Is there any other solution for this?
>>
>> Thanks
>> Franck
Re: Image position in TableViewer [message #498431 is a reply to message #498260] Mon, 16 November 2009 21:54 Go to previous message
Franck Lepretre is currently offline Franck Lepretre
Messages: 7
Registered: November 2009
Junior Member
Thanks for the info.

Yes, I followed Tom's advice and found a good example (made by Tom!) that shows how to proceed :

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/Snippet051TableCenteredImage.java?view=markup

Thanks again your help.

Franck

[Updated on: Mon, 16 November 2009 22:30]

Report message to a moderator

Previous Topic:Extending a wizard
Next Topic:Eclipse RCP user-friendly forms plugin or library?
Goto Forum:
  


Current Time: Fri Sep 19 17:54:26 GMT 2014

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

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