Search code examples
delphidelphi-2006

TPageControl component in Delphi 2006


Is there an option to use same components (check boxes, TEdits, etc.) on different tabs on TPageControl component?


Solution

  • Not directly, no because each page is a separate object. If you want to use the same controls on every page, use TTabControl instead.

    If you need to use TPageControl, there are ways to dynamically move controls between pages but usually it is simpler to just copy and paste.