Advertisement
TLama

Untitled

Dec 3rd, 2014
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.40 KB | None | 0 0
  1. procedure TForm1.VirtualStringTreePaintText(Sender: TBaseVirtualTree; const TargetCanvas: TCanvas; Node: PVirtualNode; Column: TColumnIndex;
  2.   TextType: TVSTTextType);
  3. begin
  4.   case Column of
  5.     0: TargetCanvas.Font.Style := [fsBold];  // make the first column text bold style, default color
  6.     1: TargetCanvas.Font.Color := clRed;     // make the second column text normal style, red color
  7.   end;
  8. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement