Bug 50163 - Table doesn't respect transparency in column images when using a different row background color
Summary: Table doesn't respect transparency in column images when using a different ro...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 16:38 EST by Chris Gross CLA
Modified: 2023-02-01 01:41 EST (History)
10 users (show)

See Also:


Attachments
Screenshot of bug (23.33 KB, image/gif)
2004-01-16 16:39 EST, Chris Gross CLA
no flags Details
Screen shot demonstrating image transparency problem. (16.98 KB, image/jpeg)
2005-02-18 16:19 EST, Samantha Chan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gross CLA 2004-01-16 16:38:31 EST
Images in columns do not respect transparency when you've highlighted rows with 
a different background color.  The background color of the table seems to be 
used even if the row is colored differently.
Comment 1 Chris Gross CLA 2004-01-16 16:39:14 EST
Created attachment 7469 [details]
Screenshot of bug
Comment 2 Grant Gayed CLA 2004-01-20 09:35:14 EST
Image transparency is not respected when used in a widget.  This is a known 
issue.


*** This bug has been marked as a duplicate of 35040 ***
Comment 3 Chris Gross CLA 2004-01-20 10:00:07 EST
I'm not sure if this is actually a dupe.  I was not using a PNG image in my 
development.  It was a GIF.  Futhermore, it seems the transparency WAS 
respected when setting the background color of the entire table.  The problem 
occurs only when setting the background color for an individual row.  
Comment 4 Grant Gayed CLA 2004-05-04 10:23:24 EDT
revisiting
Comment 5 Grant Gayed CLA 2004-05-04 10:24:25 EDT
SSQ is this failure unexpected?
Comment 6 Samantha Chan CLA 2005-02-18 16:19:44 EST
Created attachment 18113 [details]
Screen shot demonstrating image transparency problem.

I noticed a similar problem when changing the background color of my table
using ITableColorProvider.  The cell highlighted in blue was highlighted with
TableCursor.  In that case, the image transparency was respected.  The rest of
the table coloring was done using ITableColorProvider.	In that case, the
background color of the image remains the same as the default table background
color.
Comment 7 Samantha Chan CLA 2005-03-07 11:21:31 EST
Hi Silenio -

Any plan on fixing this for 3.1?  I have a feature item depending on this bug.  
The feature is to allow highlighting of certain cells in the Memory View.  This 
bug makes the highlighting very messy in the view.

Thanks
Samantha
Comment 8 Silenio Quarti CLA 2005-03-07 12:01:34 EST
Hi Samantha,

When I first investigate this problem, I did not find any solution. It seems 
that Windows will always draw the background of the image using the table 
background and not the row background.

I will have to investigate more.

Silenio
Comment 9 chris cali CLA 2005-10-19 16:48:25 EDT
any news on this bug
Comment 10 chris cali CLA 2005-10-19 16:54:43 EDT
any news on this?
Comment 11 Axel MAUMONT CLA 2007-03-13 06:17:47 EDT
Is there an other solution to get round this problem ?

Thank you.
Comment 12 Silenio Quarti CLA 2007-03-13 10:01:01 EDT
Steve, is there anything that can be done here?
Comment 13 Nathan Schile CLA 2009-04-26 17:51:21 EDT
I am setting the cells image with a image (png) that has a transparent background.   I am calling table.getItem(i).setBackground(colorRed); to set the rows background color.  The image is getting the background color of the table rather then the row.  My workaround is to use a listen to the SWT.EraseItem and set the background there.  It would be nice not to have to set the background in the SWT.EraseItem, and just use the setBackground color on the TableItem.
Comment 14 Eleanor Joslin CLA 2009-11-19 06:14:45 EST
I found that when I put an icon at the left-hand end of a coloured table row in Windows, it is always surrounded by a white border (white being the background colour of the table).  Windows doesn't seem to start using the row colour until a few pixels to the right of the icon.  I guess this is why the transparent pixels in the icon render as white -- using the row colour wouldn't make sense.  I'd like to get rid of this white area, but I haven't found a workable solution yet.
Comment 15 David Császár CLA 2009-11-19 17:59:58 EST
The white border is a feature AKA bug 208866, see there for a workaround.
Comment 16 Eclipse Webmaster CLA 2019-09-06 16:05:42 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 17 Björn Michael CLA 2020-07-17 06:46:04 EDT
The problem still occurs and we still want this bug fixed.
Comment 18 Jörg Hundertmark CLA 2023-02-01 01:41:15 EST
We had an expert audit proofing the usability of our ecplise application.
Currently there is a finding we can only solve, if this bug will be solved.

Is there a chance to solve this bug in an easy and timely way?