Hi
I'm new to E4 and met a problem on it's feature.
I've heard of that E4 could use the components class name as the selector.
So i've written a child class named DateFilterComposite which is extended to Composite, and tried to add css to style this components. However it not woks.
public class DateFilterComposite extends Composite
{
...
public DateFilterComposite(Composite parent, int style, boolean showSearchRun)
{
super(parent, style);
...
Label test1 = new Label(this, SWT.NONE);
...
Combo = new Combo(this, SWT.READ_ONLY);
...
...
}
DateFilterComposite {
background-color: red;
}
Also tried .DateFilterComposite { background-color: red; } , but not work either.
Could anyone help me out if style the created child composite via css is possible?
If possible, what the correct syntax would be.
If not, any other ways could set a style to the component - DateFilterComposite.
[Updated on: Wed, 30 November 2011 04:46]
Report message to a moderator