CDateTime - Background Color - FormEditor [message #63879] |
Wed, 03 June 2009 12:46 |
Peter Pfeifer Messages: 98 Registered: July 2009 |
Member |
|
|
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.03459 seconds