Forum > LCL
treenode font style
(1/1)
fcu:
Hi
how can i change a treenode font style , make it bold for example
like in the picture
jamie:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- procedure TForm1.TreeView1CustomDrawItem(Sender: TCustomTreeView; Node: TTreeNode; State: TCustomDrawState; var DefaultDraw: Boolean);begin With TTreeView(Sender) do Begin If Node.Parent = Nil Then Begin font.color := clBlack; end else Font.Color := clgray; end;end;
Set the NoThemeDraw to off in the Options of the Treeview.
fcu:
thanks jamie
Navigation
[0] Message Index