Einzelnen Beitrag anzeigen

Benutzerbild von Zacherl
Zacherl

Registriert seit: 3. Sep 2004
4.629 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#2

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

  Alt 6. Apr 2016, 11:08
What exactly are you trying to do?

You can set a custom color for each row like this:
Delphi-Quellcode:
procedure TfrmMain.EditorTreeBeforeItemErase(Sender: TBaseVirtualTree; TargetCanvas: TCanvas;
  Node: PVirtualNode; ItemRect: TRect; var ItemColor: TColor; var EraseAction: TItemEraseAction);
begin
  EraseAction := eaColor;
  ItemColor := clBlue;
end;
If you like to use colored rows while using a background image, try this:
http://stackoverflow.com/a/10537589
Projekte:
- GitHub (Profil, zyantific)
- zYan Disassembler Engine ( Zydis Online, Zydis GitHub)
  Mit Zitat antworten Zitat