|Setting Composite Background color [message #909288]
||Thu, 06 September 2012 22:04
| Ronald So
Registered: April 2011
I got stuck trying to set the background color of a composite. This composite (Composite A) lives inside another composite (Composite B).
I have set the background mode of composite A and B to SWT.INHERIT_DEFAULT. Also, I have set the WidgetUtil.CUSTOM_VARIANT of Composite B to a special CSS style and it works fine. Now, I try to set Composite A with another CSS style by using the custom variant, but the desired background color never showed up.
With all the code above and a hard call "setBackground(Color)", I can set the color to the one I want. But with CSS and custom variant, I can't do the same thing.
Is there any material which explains more about the background mode? Or if you can think of anything that I can try to get around the problem?
Powered by FUDForum
. Page generated in 0.01621 seconds