I have a TPageControl
with a TTabSheet
. and in that TTabSheet
i have a bunch of functions and components. I would like to duplicate that tabSheet at run time via a button with all the functions and components still in it and working.
Right now I managed to duplicate the tabsheet. However, the new tabsheet is completely empty.
Here is my code for that button.
TTabSheet * NewTabSheet= new TTabSheet(pageControlMain);
NewTabSheet->PageControl = pageControlMain;
NewTabSheet->Caption = "TabSheet";
pageControlMain->ActivePage = NewTabSheet;
What am I missing?
As for the components and functions inside the TTabSheets, they're just scrollboxes, edits, buttons, and panels.