First of all, let's understand what I'm doing. I'm writing a component that have N containers inside it, and inside every Container of this I have more N Containers.
When I did it I had a problem: The containers were not saved to my DFM. So, I've write the GetChildren override method:
procedure TSuperCont.GetChildren(Proc: TGetChildProc;
for nAux := 0 to fTabs.Count - 1 do
Proc( fTabs[ nAux ].fContainer );
Wolaa!! It's saving to the DFM! But there is a problem. If I go to my form in Design time, and press ALT+F12 to see my DFM, there will be 2 containers (because I have 2 fTabs). THen I go back to my form pressing ALT+F12 again. When I go back to my DFM pressing once again ALT+F12, there will be 4 containers. If I do all this again, there will be 6 containers.
It's replicating in the DFM my containers, I don't know why.. Can someone help me please?