CDateTime - Background Color - FormEditor [message #63879] |
Wed, 03 June 2009 08:46 |
Eclipse User |
|
|
|
Hello there.
I'm trying to use the CDateTime control within a
org.eclipse.ui.forms.editor.FormEditor in the following way:
CDateTime date = new CDateTime(parentPart, CDT.DROP_DOWN
| CDT.DATE_SHORT | CDT.BUTTON_CUSTOM | CDT.COMPACT);
date.setBackgroundMode(SWT.INHERIT_FORCE);
date.setBackground(date.getDisplay().getSystemColor(SWT.COLO R_WHITE));
date.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
this.formToolkit.adapt(date, true, true);
this.formToolkit.paintBordersFor(date);
But setting the background color to SWT.COLOR_WHITE has no effect.
Does anybody have an idea, what I may have done wrong?
Regards and thanks a lot,
Peter
|
|
|
Powered by
FUDForum. Page generated in 0.05680 seconds