mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:37:58 +02:00
LCL: grids: enable ellipsis editor color.
This commit is contained in:
parent
f8f1652fd4
commit
282f0a29fe
@ -302,7 +302,7 @@ type
|
||||
ActiveControl: boolean;
|
||||
end;
|
||||
|
||||
TCompositeCellEditor = class(TWinControl)
|
||||
TCompositeCellEditor = class(TCustomControl)
|
||||
private
|
||||
FGrid: TCustomGrid;
|
||||
FCol,FRow: Integer;
|
||||
@ -324,6 +324,7 @@ type
|
||||
function GetActiveControl: TWinControl;
|
||||
procedure VisibleChanging; override;
|
||||
function SendChar(AChar: TUTF8Char): Integer;
|
||||
procedure SetColor(Value: TColor); override;
|
||||
procedure WndProc(var TheMessage : TLMessage); override;
|
||||
procedure CustomAlignPosition(AControl: TControl; var ANewLeft, ANewTop, ANewWidth,
|
||||
ANewHeight: Integer; var AlignRect: TRect; AlignInfo: TAlignInfo); override;
|
||||
@ -13716,6 +13717,16 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCompositeCellEditor.SetColor(Value: TColor);
|
||||
var
|
||||
activeCtrl: TWinControl;
|
||||
begin
|
||||
inherited SetColor(Value);
|
||||
activeCtrl := ActiveControl;
|
||||
if activeCtrl<>nil then
|
||||
activeCtrl.Color := Value;
|
||||
end;
|
||||
|
||||
destructor TCompositeCellEditor.Destroy;
|
||||
begin
|
||||
SetLength(FEditors, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user