Well,
I manage to add a footer easily with THeaderControl component.
Here what I did:
1. Place the Treeview on a panel, set Align to alTop
2. Place a HeaderControl below the treeview in the same panel, set the align to alClient
3. Create sections on header control related to your treeview columns. So if you have 3 columns in the treeview, create 3 sections in the header control.
4. Set the each section of the header control the same width with its related treeview column.
5. In the run time, synchronize treeview columns width change to the header control via OnColumnResize event like this:
procedure TFormRABSpectra.VTDataColumnResize(Sender: TVTHeader;
Column: TColumnIndex);
var
i : Integer;
begin
for i := 0 to RAB_KOLOM_COUNT do begin
Self.Footer.Sections[i].Width:=Self.VTData.Header.Columns[i].Width;
end;
end;
Attached is a screenshot of my treeview with footer.