FIRST question:
In the TAdvTreeView it is possible to manipulate the text and textcolor with the GetNodeTextColor and GetNodeText events. I want to show the text in Bold under certain circumstances. Can that be done?
SECOND question:
With the GetNodeColor and GetNodeSelectedColor I can color rows based on certain circumstances. But I can't manipulate the cursorrow when a row is selected (rowselect). That always stays the same. Can that be done somehow?
1)
You can conditionally change the full font of nodes usingprocedure TForm1.AdvTreeView1BeforeDrawNodeText(Sender: TObject;
ACanvas: TCanvas; ARect: TRectF; AColumn: Integer;
ANode: TAdvTreeViewVirtualNode; AText: string; var AAllow: Boolean);
begin
if odd(anode.Index) then
ACanvas.Font.Style := [fsBold];
end;
2) Not sure I understand this part. You want to change the control cursor when the mouse is over specific rows or do you mean something else?
Hi,
1) Works ok. Just what I was looking for.
2) No problem, I've managed to find the solution myself, thank you.