Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CDateTime - Background Color - FormEditor
CDateTime - Background Color - FormEditor [message #63879] Wed, 03 June 2009 12:46
Peter Pfeifer is currently offline Peter PfeiferFriend
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
Previous Topic:CDateTime Release schedule?
Next Topic:CDateTime - Background Color - FormEditor
Goto Forum:
  


Current Time: Mon Jul 22 14:50:20 GMT 2019

Powered by FUDForum. Page generated in 0.01662 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top