I looked for a TPageControl.Clear method but no dice.
So what's the best way to implement a TPageControl clear method which would delete all the sheets in the page control?
A brute-force way is to delete the page control itself and create a new one.
A second method would iterate through all the pages and free them one by one.
I did notice that in the TCustomTabControl has a public property called Pages which, presumably, holds a list of all the pages. Calling Pages.Clear would do the trick but TPageControl "hides" that property by defining Pages as an array property.
Thoughts?