I am using TableCombo and when I push the dropdown button, the list of all items is shown. I would like to achieve that currently selected row is not highlighted in this list (because I use different background colors depending on type of item and the highlight hides the background color of selected item). I have tried creating the table with SWT.NO_FOCUS and SWT.HIDE_SELECTION flags, but it did not remove the highlight. Any ideas?
I have tried to find out something like highlighter in swing, but I haven’t succeed
I just found this thread, which pretty much answers my question. For
SWT.FULL_SELECTIONhighlighting is taken care of by OS automatically – seeTable.CDDS_ITEMPOSTPAINT(NMLVCUSTOMDRAW nmcd, int wParam, int lParam)on Win32.However this behavior can be modified by style constants. Correct solution for me was using
SWT.FULL_SELECTION(whole row can be selected) andSWT.NO_FOCUS(dark blue highlight is not used) andSWT.HIDE_SELECTION(hides default gray background color for selected item) flags together.Sadly, the
HIDE_SELECTIONflag is not supported by SWTTree.