|
|
Re: Remove selection anchor [message #1740140 is a reply to message #1740092] |
Tue, 09 August 2016 15:05 |
Loris Securo Messages: 3 Registered: August 2016 |
Junior Member |
|
|
Dirk Fauth wrote on Tue, 09 August 2016 07:00Change the selection anchor style to look like the selection.
The problem with that approach is that since the border is still drawn, it will cover the external grid lines: http://imgur.com/qqXq7rR
But even worse is when we don't draw grid lines, then the border will cover part of the upper cell and there will be a noticeable height difference between the row header and the selected cell: http://imgur.com/IubNFaV
That's why I think there should be a way to not paint it at all.
This is the code I used for the examples:
public static class MyTheme extends DefaultNatTableThemeConfiguration {
public MyTheme() {
// for no grid lines:
renderBodyGridLines = false;
renderColumnHeaderGridLines = false;
renderRowHeaderGridLines = false;
renderCornerGridLines = false;
// selection background color
defaultSelectionBgColor = GUIHelper.COLOR_RED;
// anchor background color
selectionAnchorSelectionBgColor = GUIHelper.COLOR_RED;
// anchor internal border
selectionAnchorBorderStyle = new BorderStyle(1, GUIHelper.COLOR_RED, LineStyleEnum.SOLID);
// anchor selection border
selectionAnchorGridBorderStyle = new BorderStyle(1, GUIHelper.COLOR_RED, LineStyleEnum.SOLID);
}
}
[Updated on: Tue, 09 August 2016 15:08] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24409 seconds