File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1786,6 +1786,26 @@ procedure TLabeledDbGrid.DrawColumnCell(const Rect: TRect; DataCol: Integer;
17861786 CellColor := GetCellColor;
17871787 end ;
17881788
1789+ if dgAlwaysShowSelection in Options then
1790+ begin
1791+ if (DataSource = nil ) or (DataSource.DataSet = nil ) or (DataSource.DataSet.EOF and DataSource.DataSet.BOF) then
1792+ Canvas.Brush.Color := GetStyledColor(Color)
1793+ else
1794+ if not Focused and ( gdSelected in State ) then
1795+ begin
1796+ if DefaultWindowsStyleEnabled then
1797+ begin
1798+ Canvas.Brush.Color := clInactiveCaption;
1799+ Canvas.Font.Color := clInactiveCaptionText;
1800+ end
1801+ else
1802+ begin
1803+ Canvas.Brush.Color := LightenColor(GetStyledColor(clHighlight), 150 );
1804+ Canvas.Font.Color := LightenColor(GetStyledColor(clHighlightText), 25 );
1805+ end ;
1806+ end ;
1807+ end ;
1808+
17891809 // Se il tipo di dato è Boolean, mostra in alternativa alle diciture
17901810 // false e true, l'immagine check e uncheck
17911811 if (not (csLoading in ComponentState)) and isCheckBoxedColumn(Column) and FDrawCheckBoxImages then
You can’t perform that action at this time.
0 commit comments