I was having my usual stroll around and bumped on some frames discussions.
I\'m mainly a Delphi hobbyist and not a professional, so I had to learn how to use TFrames my o
The only problem with your approach is that you cannot add multiple instances of the same frame to a given form:
Frame1 := TMyFrame.Create(Self);
Frame1.Parent := Self;
// ...
Frame2 := TMyFrame.Create(Self); // bombs out with "a component with the name MyFrame already exists"
The workaround for his is to assign a different name for each instance:
Frame1 := TMyFrame.Create(Self)
Frame1.Parent := Self;
Frame1.Name := "FirstFrame";
// ...
Frame2 := TMyFrame.Create(Self); // works now, there is no name conflict