开发者

Windows 7 SWT Table selected row highlight color

开发者 https://www.devze.com 2023-03-27 14:15 出处:网络
Is there a way to set the background color of a highlighted row of a SWT Table (FULL_SELECTION style) in Windows 7\'s Aero theme? It appears that it\'s a derived, lighter color from the background col

Is there a way to set the background color of a highlighted row of a SWT Table (FULL_SELECTION style) in Windows 7's Aero theme? It appears that it's a derived, lighter color from the background color of the Table. But other than that, I don't seem to have much control over what color to use.

This is a problem to us because some of our table items' texts (foreground) are grayish whites, so they are very harder to re开发者_开发技巧ad if the row is selected on a light-colored background. I've already set the background color of the table to Black, but the text is still pretty hard to see.

Are there any suggestions on how to control the color?

Thank you! RAY


According to SWT Win32 source file, exactly line 1611

if ((style & SWT.FULL_SELECTION) != 0) bits1 |= OS.LVS_EX_FULLROWSELECT;

the graphics style of SWT.FULL_SELECTION is get directly from OS (for LVS_EX_FULLROWSELECT see Extended List-View Styles on MSDN).

So it's not possible to change the style..

0

精彩评论

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

关注公众号