Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318301 - Disabled background color for CompletionCombo and CCombo
Summary: Disabled background color for CompletionCombo and CCombo
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0.0.M2   Edit
Assignee: Elias Volanakis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 08:12 EDT by Christian Campo CLA
Modified: 2010-10-29 06:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.