Hi,
I have a PageControl with dynamically added tabsheets. The caption looks like: Page 1, Page 2, Page 3, etc.
It is also possible to destroy a tabsheet.This is simply done with:
PageControl1.ActivePage.Destroy;
The problem now is that the captions need to be renamed so you still see: Page 1, Page 2, Page 3, etc.
I can't figure out a good routine that looks at the number of tabsheets and then renames the caption of each like described above.
Anyone can help me with this?
Thanks,
Raoul
I have a PageControl with dynamically added tabsheets. The caption looks like: Page 1, Page 2, Page 3, etc.
It is also possible to destroy a tabsheet.This is simply done with:
PageControl1.ActivePage.Destroy;
The problem now is that the captions need to be renamed so you still see: Page 1, Page 2, Page 3, etc.
I can't figure out a good routine that looks at the number of tabsheets and then renames the caption of each like described above.
Anyone can help me with this?
Thanks,
Raoul