Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 133441

Summary: TableItem/TreeItem with image set rendered differently for Table/Tree with SWT.FULL_SELECTION
Product: [Eclipse Project] Platform Reporter: Valentin Baciu <valentinbaciu>
Component: SWTAssignee: Steve Northover <snorthov>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: csalter, eclipse.felipe, fwp, snorthov
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Simple example showing the problem
none
Screenshot none

Description Valentin Baciu CLA 2006-03-27 18:08:49 EST
Run the attached example. Select a row in the table. You should notice how the image is not painted properly. Now select an item in the tree. The image is properly painted. See the attached screenshot as well.
Comment 1 Valentin Baciu CLA 2006-03-27 18:10:24 EST
Created attachment 37032 [details]
Simple example showing the problem
Comment 2 Valentin Baciu CLA 2006-03-27 18:16:00 EST
Created attachment 37033 [details]
Screenshot
Comment 3 Steve Northover CLA 2006-03-27 18:51:15 EST
FH, didn't Florian submit a patch for this one?  Did we already fix it?
Comment 4 Florian Priester CLA 2006-03-27 19:28:52 EST
Do you mean bug 127216? That covers a different issue. (Actually, you're right,
it's about check box shades too, but real table check boxes, not item images
that happen to depict a check box.)

This report, I think, boils down to two things:

  1) The table widget applies a shade to an item image in a selected row
     while the tree widget doesn't.
     -> Platform behaviour
  2) The shade on the table item image doesn't look good.
     -> This can be improved if the reporter installs a manifest file
Comment 5 Valentin Baciu CLA 2006-03-28 15:30:08 EST
Could you please explain what do you mean by "installing a manifest file"?
Thanks, Valentin
Comment 6 Florian Priester CLA 2006-03-28 15:51:47 EST
(In reply to comment #5)
> Could you please explain what do you mean by "installing a manifest file"?

This means adding a javaw.exe.manifest file to the bin folder of your
respective JRE installation (e.g. C:\Program Files\Java\jre1.5.0_06\bin).

When this file is present, Windows XP will give your SWT application
a properly-themed look. As a side-effect, the shade on your table item image
will be less grainy. (Note, however, that there will still be a difference
in appearance when compared to a tree item.)

More information is available at http://www.eclipse.org/swt/faq.php#xpthemes
Comment 7 Steve Northover CLA 2006-04-03 16:36:48 EDT
Unless Florian has some ideas, I'd suggest we close this.
Comment 8 Steve Northover CLA 2006-04-03 16:37:32 EDT
Actually, let's close it now since using the manifest file fixes it.
Comment 9 Valentin Baciu CLA 2006-09-25 12:07:54 EDT
Closing.