You've already forked lazarus-ccr
ExCtrls: Activate background painting in TColumnComboboxEx again to fix invisible text in some Linux desktops.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7942 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -211,6 +211,15 @@ begin
|
||||
exit;
|
||||
end;
|
||||
|
||||
if DroppedDown then
|
||||
begin
|
||||
if (odSelected in State) then
|
||||
Canvas.Brush.Color := clHighlight
|
||||
else if (Canvas.Brush.Color <> Color) then
|
||||
Canvas.Brush.Color := Color;
|
||||
Canvas.FillRect(ARect);
|
||||
end;
|
||||
|
||||
if Index < 0 then
|
||||
txt := ''
|
||||
else
|
||||
@ -220,15 +229,6 @@ begin
|
||||
FParser.Delimiter := FDelimiter;
|
||||
FParser.DelimitedText := txt;
|
||||
|
||||
if not(odBackgroundPainted in State) then
|
||||
Canvas.FillRect(ARect);
|
||||
|
||||
{ if (odSelected in State) then
|
||||
Canvas.Brush.Color := clHighlight
|
||||
else if (Canvas.Brush.Color <> Color) then
|
||||
Canvas.Brush.Color := Color;
|
||||
Canvas.FillRect(ARect);}
|
||||
|
||||
y := ARect.Top + (ARect.Height - FTextHeight) shr 1;
|
||||
|
||||
Canvas.Brush.Style := bsClear; // transparent text background
|
||||
|
Reference in New Issue
Block a user