Einzelnen Beitrag anzeigen

Whookie

Registriert seit: 3. Mai 2006
Ort: Graz
441 Beiträge
 
Delphi 10.3 Rio
 
#2

AW: [FMX] Stringgrid / Grid Zelle Färben

  Alt 25. Okt 2016, 08:22
Bin zwar kein FMX-Spezialist hab das aber mal kurz probiert:

Delphi-Quellcode:
procedure TForm2.StringGrid1DrawColumnCell(Sender: TObject; const Canvas: TCanvas; const Column: TColumn; const Bounds: TRectF; const Row: Integer;
  const Value: TValue; const State: TGridDrawStates);
begin
  if (Row=2) And (Column=StringColumn1) then
  begin
    Canvas.Fill.Color := TAlphaColorRec.Yellow;
    Canvas.FillRect(Bounds, 0, 0, [], 100, Canvas.Fill);
  end;

end;
und scheint zu klappen...
Whookie

Software isn't released ... it is allowed to escape!
  Mit Zitat antworten Zitat