Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 7 SWT Table selected row highlight color

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 read 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

like image 540
RAY Avatar asked Aug 10 '11 06:08

RAY


1 Answers

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..

like image 135
Sorceror Avatar answered Sep 19 '22 03:09

Sorceror