Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom Table Paint
Custom Table Paint [message #555166] Wed, 25 August 2010 16:49 Go to next message
Kim Myoungki is currently offline Kim MyoungkiFriend
Messages: 12
Registered: July 2009
Junior Member
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 11:31 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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: Thu Feb 29 13:21:38 GMT 2024

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

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

Back to the top