How Can I Add Pages to a TTabbedNotebook at Run-time?

Posted December 15th @ 1:54 pm by m3Rlin

This example shows you how to add a page to a TTabbedNotebook at run-time. It also shows how to add controls to it. Original code by Graham Mainwaring.

procedure AddPage;
var
btnNew : TButton;
NewPage: TTabPage;
wNumber: Word;
begin
{ [...]