Custom Table Paint [message #555166] |
Wed, 25 August 2010 12:49  |
Eclipse User |
|
|
|
Hello,
I am looking for how to draw a image. Well, drawing a image in cell is ok. But the image's size is reduced. I think this is because of SWT's behaviour and this will happen in SWT as well.
But, I can draw image size freely using SWT.PaintItem or SWT.MeasureItem event in SWT.
How about RAP? Is it possible to solve this problem?
Thanks in advance.
Myoungki
|
|
|
Re: Custom Table Paint [message #555338 is a reply to message #555166] |
Thu, 26 August 2010 07:31  |
Eclipse User |
|
|
|
Hi Kim,
SWT.PaintItem or SWT.MeasureItem events are not supported in RAP. We are
trying to make the RWT functionality as close as possible to SWT.
The space for the image is calculated only first time when you set an
image on TableItem. If you try to set a bigger image again (even on a
different table item), the reserved space for it will not change. To
workaround this, you have to clear the Table by calling Table#clearAll()
and set all items data (text, images, colors...) again.
HTH,
Ivan
On 08/25/2010 7:49 PM, Kim Myoungki wrote:
> Hello,
>
> I am looking for how to draw a image. Well, drawing a image in cell is
> ok. But the image's size is reduced. I think this is because of SWT's
> behaviour and this will happen in SWT as well.
>
> But, I can draw image size freely using SWT.PaintItem or
> SWT.MeasureItem event in SWT.
>
> How about RAP? Is it possible to solve this problem?
>
> Thanks in advance.
>
> Myoungki
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03382 seconds