Bug 225361 - Checkboxes in disabled Tree should not keep white background
Summary: Checkboxes in disabled Tree should not keep white background
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 322328 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-02 11:24 EDT by Markus Keller CLA
Modified: 2019-09-06 15:31 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot (2.83 KB, image/png)
2008-04-02 11:24 EDT, Markus Keller CLA
no flags Details
disabledCheckboxTree.png (1.80 KB, image/png)
2008-04-04 11:09 EDT, Carolyn MacLeod CLA
no flags Details
disabledCheckboxTree2.PNG (3.38 KB, image/x-png)
2008-04-04 11:14 EDT, Carolyn MacLeod CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2008-04-02 11:24:48 EDT
Created attachment 94559 [details]
Screenshot

I20080401-0851

Checkboxes in disabled Tree should not keep white background (should be gray).
Comment 1 Steve Northover CLA 2008-04-04 10:20:01 EDT
This WORKSFORME.  CAR, can you test it on your machine and attach a working screen shot.
Comment 2 Carolyn MacLeod CLA 2008-04-04 11:09:36 EDT
Created attachment 94861 [details]
disabledCheckboxTree.png

XP SP2, ControlExample Tree with CHECK=true and Enabled=false.

This snapshot shows the checkboxes have the correct background color. They are white in the center, but grey around the outside.
Comment 3 Carolyn MacLeod CLA 2008-04-04 11:14:25 EDT
Created attachment 94864 [details]
disabledCheckboxTree2.PNG

Here it is again, but configured exactly the same as your snapshot, with Size=100 x 100 and Node 3 expanded. Color is still good.
Comment 4 Markus Keller CLA 2008-04-04 12:01:22 EDT
I don't know how this could happen. I cannot reproduce today with the same build. I initially saw it in an Eclipse launch configuration on the Plug-ins tab, and then reproduced in the ControlExample.

Must have been an asyncExec'd April Fool's bug.
Comment 5 Carolyn MacLeod CLA 2008-04-04 12:09:31 EDT
The snapshot proves that you saw it! <g>
I wonder if you were running low on resources or something?
Have you rebooted your machine since then?
Comment 6 Markus Keller CLA 2008-04-04 12:43:16 EDT
> The snapshot proves that you saw it! <g>

I could also have forged the screenshot, but it's nice to hear you trust me ;-)

> I wonder if you were running low on resources or something?
> Have you rebooted your machine since then?

Bingo! Now I remember that I had problems with the Presentation Director [1] on my machine. From time to time, it decides to set the bit depth of my display to 16 bit (which is hard to notice, since I don't play games and the performance degradation in 16 Bit mode is not very big).

So, to reproduce, you have to set the Color qualify in Control Panel > Display > Settings to 16 bit. OK to WONTFIX or NOT_ECLIPSE for displays < 32 bit.


[1] Presentation Director: A tool that screws up the screen resolution and window bounds when you dock/undock the laptop.
Comment 7 Felipe Heidrich CLA 2010-08-11 10:53:55 EDT
*** Bug 322328 has been marked as a duplicate of this bug. ***
Comment 8 Markus Keller CLA 2010-08-11 11:48:58 EDT
Not sure if bug 322328 is really a dup of this. This bug turned out to be a 16-bit-only problem, which only affects the Tree widget, but not Table.

Bug 322328 is about applying the fix for bug 314416 for Tree as well.
Comment 9 Felipe Heidrich CLA 2010-08-11 14:01:51 EDT
(In reply to comment #8)
This is the openning description:

"Checkboxes in disabled Tree should not keep white background (should be gray)."

I see this problem on my machine (32bits).

Or where you refering exclusively to the white border around of the check box ?
Comment 10 Markus Keller CLA 2010-08-12 05:05:33 EDT
(In reply to comment #9)
> Or were you refering exclusively to the white border around of the check box?
Yes, I didn't even know that the background inside the checkbox can also be gray.

I don't care too much about this bug (since 16-bit is a rare case), but I don't like the inconsistency between tables and trees in HEAD.
Comment 11 Felipe Heidrich CLA 2010-08-12 16:39:51 EDT
Applying the same fix used in table doesn't work for the Tree.
WM_NOTIFY/TVN_GETDISPINFO does not request info about the state image mask on the Tree.
Comment 12 Eclipse Webmaster CLA 2019-09-06 15:31:19 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.