Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom Table Paint
Custom Table Paint [message #555166] Wed, 25 August 2010 12:49 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
>
>
Previous Topic:Shell activate order problem
Next Topic:The tableViewer select the wrong row when invoke tableViewer.remove(obj)
Goto Forum:
  


Current Time: Tue Jul 01 18:41:34 EDT 2025

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

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

Back to the top