开发者

How do I clear the background of an SWT ExpandBar?

开发者 https://www.devze.com 2022-12-26 12:57 出处:网络
The default background of an ExpandBar in SWT appears to be a gradient of whichever color the operating system is using.

The default background of an ExpandBar in SWT appears to be a gradient of whichever color the operating system is using.

However, when I change the bac开发者_Python百科kground of an ExpandBar in SWT, the controls switch to the Windows Classic style.

Is there a way to set the background of the ExpandBar without reverting to the Windows Classic look?


Have you tried this one: Control.setBackgroundImage(Image)?


I don't think this can be done without painting over the controls.

0

精彩评论

暂无评论...
验证码 换一张
取 消