procedureTForm1.TreeView1CustomDrawItem(Sender:TCustomTreeView; Node:TTreeNode;State:TCustomDrawState;varDefaultDraw:Boolean); begin if(cdsSelectedinState)then begin withSender.Canvasdo begin Brush.Color:=clBlue; Font.Color:=clRed; Font.Size:=11; Font.Style:=[fsBold]; end; end; end;