mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
grids: fix row background color when editing and goRowSelect enabled. Issue #29237
git-svn-id: trunk@51005 -
This commit is contained in:
parent
884fddbf00
commit
775dee256f
@ -3586,12 +3586,12 @@ begin
|
||||
Canvas.Pen.Mode := pmCopy;
|
||||
GetSelectedState(aState, IsSelected);
|
||||
if IsSelected then begin
|
||||
if FEditorMode and (FEditor<>nil)
|
||||
if FEditorMode and (aCol = Self.Col)
|
||||
and (((FEditor=FStringEditor) and (FStringEditor.BorderStyle=bsNone))
|
||||
or (FEditor=FButtonStringEditor))
|
||||
then
|
||||
Canvas.Brush.Color := FEditor.Color
|
||||
else if FEditorMode and (FEditor=FPicklistEditor) then
|
||||
else if FEditorMode and (aCol = Self.Col) and (FEditor=FPicklistEditor) then
|
||||
Canvas.Brush.Color := GetNotSelectedColor
|
||||
else
|
||||
Canvas.Brush.Color := SelectedColor;
|
||||
|
Loading…
Reference in New Issue
Block a user