Einzelnen Beitrag anzeigen

drama22

Registriert seit: 12. Jan 2013
88 Beiträge
 
#1

how do i remove white background in node inside virtual TVirtualStringTree?

  Alt 6. Apr 2016, 01:31
i tried to use TargetCanvas.Brush.Style := bsClear; inside BeforeCellPaint still node have white back ground here is the full code

Delphi-Quellcode:
procedure TForm2.VTs1BeforeCellPaint(Sender: TBaseVirtualTree;
  TargetCanvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex;
  CellPaintMode: TVTCellPaintMode; CellRect: TRect; var ContentRect: TRect);
begin
TargetCanvas.Brush.Style := bsClear;
TargetCanvas.FillRect(CellRect);
end;
  Mit Zitat antworten Zitat