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

Bug 314416

Summary: Checkboxes in disabled tables rendered incorrectly on Windows
Product: [Eclipse Project] Platform Reporter: Michael Pellaton <michael.pellaton>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, markus.kell.r, philippe.marschall, Silenio_Quarti
Version: 3.6   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Demo application that showcases the problem
none
screenshot taken on linux gtk
none
screenshot taken on osx cocoa
none
screenshot taken on windows 7 with aero
none
screenshot taken on windows xp classic
none
Patch (preserving look for Windows XP Classic theme)
none
screenshot with the patch none

Description Michael Pellaton CLA 2010-05-26 05:17:40 EDT
Build Identifier: 3.6.RC2

The checkboxes in disabled tables are not rendered like normal disabled checkboxes in all Windows platforms. The checkboxes are functionally disabled (no checked state change possible) but they are displayed like active checkboxes. However, normal checkboxes that are not part of a table are rendered differently when disabled.

Linux/GTK and OSX/Cocoa are ok.

Based on the mail template app, I created a showcase app to display the differences (see attachment).

Please see attached screen shots.

Reproducible: Always

Steps to Reproduce:
1. download and import the attached project
2. run it on windows xp/vista/7 (classic or aero mode make no difference)
3. compare the rendering of the disabled checkboxes out and inside the table
Comment 1 Michael Pellaton CLA 2010-05-26 05:18:26 EDT
Created attachment 169953 [details]
Demo application that showcases the problem
Comment 2 Michael Pellaton CLA 2010-05-26 05:18:53 EDT
Created attachment 169954 [details]
screenshot taken on linux gtk
Comment 3 Michael Pellaton CLA 2010-05-26 05:19:13 EDT
Created attachment 169955 [details]
screenshot taken on osx cocoa
Comment 4 Michael Pellaton CLA 2010-05-26 05:19:35 EDT
Created attachment 169956 [details]
screenshot taken on windows 7 with aero
Comment 5 Michael Pellaton CLA 2010-05-26 05:19:54 EDT
Created attachment 169957 [details]
screenshot taken on windows xp classic
Comment 6 Felipe Heidrich CLA 2010-05-26 10:42:53 EDT
If we fix this problem, on windows xp classic theme, the user won't be able to tell if an item is grayed or not when the table is disabled.
Comment 7 Felipe Heidrich CLA 2010-05-26 11:32:37 EDT
Created attachment 170017 [details]
Patch (preserving look for Windows XP Classic theme)
Comment 8 Felipe Heidrich CLA 2010-05-26 11:33:10 EDT
Created attachment 170018 [details]
screenshot with the patch
Comment 9 Felipe Heidrich CLA 2010-05-26 11:44:17 EDT
Not sure what is the best look for XP classic. Either way, I'll only be able to fix this after 3.6
Comment 10 Felipe Heidrich CLA 2010-08-10 14:15:18 EDT
Fixed in HEAD > 20100810
Comment 11 Markus Keller CLA 2010-08-11 05:40:59 EDT
Bug 322328 is for the same problem in Tree.