I fiddled around with TTreeView, but i could not style the parent nodes.
I used something like this in a OnAdvancedCustomDrawItem event:
...
if Node.Parent = nil then begin
Sender.Canvas.Font.Style = [fsBold];
end;
DefaultDraw := True;
...
To me it seems that the font style has nothing to do with the Node itself here,
but it came up in my searches and seemed to work on other people. Or does it in Delphi ?
It set the whole TreeView's text to bold, what was kind of expected
Might have I been misinformed ?
Perhaps I should mention Lazarus version: 1.2.4 (win32)
Thanks!