TreeView - how to make some items bold/italic? lazarus / 31-LCL ---------------------------------------------------------------------- AlexTP · 2018-01-02 10:09 i dont see that TTreeNode has props for Bold/italic/underline. how to paint some nodes in such way? ---------------------------------------------------------------------- howardpc · 2018-01-02 10:23 You have to custom draw the node using TTreeView's OnAdvancedCustomDraw event property. ---------------------------------------------------------------------- ASerge · 2018-01-02 12:56 Quote from: Alextp on January 02, 2018, 11:09:02 ami dont see that TTreeNode has props for Bold/italic/underline. how to paint some nodes in such way? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.TreeView1CustomDrawItem(Sender: TCustomTreeView;  Node: TTreeNode; State: TCustomDrawState; var DefaultDraw: Boolean);var  LFont: TFont;begin  LFont := Sender.Canvas.Font;  if Odd(Node.AbsoluteIndex) then    LFont.Style := LFont.Style + [fsBold]  else    LFont.Style := LFont.Style - [fsBold];  if (Node.AbsoluteIndex mod 3) = 0 then    LFont.Style := LFont.Style + [fsUnderline]  else  LFont.Style := LFont.Style - [fsUnderline];end;