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

Bug 318301

Summary: Disabled background color for CompletionCombo and CCombo
Product: [RT] Riena Reporter: Christian Campo <christian.campo>
Component: UIAssignee: Elias Volanakis <elias>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0.0   
Target Milestone: 3.0.0.M2   
Hardware: All   
OS: All   
Whiteboard:

Description Christian Campo CLA 2010-06-29 08:12:31 EDT
The disabled background color is not picked up for CompletionCombo and DatePickerComposite if control is disabled. Might be complicated for DatePickerComposite, but should be implemented for CompletionCombo at least
Comment 1 Elias Volanakis CLA 2010-07-09 12:01:24 EDT
The problem happens with CCombo and CompletionCombo (DatePickerComposite is ok).

The issue is that the implementors of CCombo (extends Composite) override the standard behavior of getChildren() to ALWAYS return an empty array :-(. Correspondigly no painter is added to the actual children of the composite.

For CCombo I'll likely add a workaround involving reflection :-(.
For CompletionCombo I'll change the implementation.
Comment 2 Elias Volanakis CLA 2010-07-09 13:15:14 EDT
Opened bug 319410 against SWT for CCombo.

Added workaround to our code. Resolved in HEAD.
Comment 3 Elias Volanakis CLA 2010-07-09 18:21:57 EDT
One last comment: I think the original description should refer to the native DateTime widget (not DatePickerComposite). The native DateTime does not have a setable background Color - see SWT Bug 222010 since 03/2008.