Add(Sheet: IWizardPage);
Sheet - input parameter that determines the added page.
The Add method adds a page to the collection of wizard pages. The page is passed as the Sheet input parameter.
All added pages are placed at the end of the collection.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
PageWiz: IWizardPage;
Lab: ILabel;
Begin
PageWiz := New WizardPage.Create;
Lab := New Label.Create;
Lab.Text := "Last page";
Wizard1.Pages.Add(PageWiz);
Lab.Parent := Wizard1.Pages.Item(Wizard1.Pages.Count - 1);
End Sub Button1OnClick;
After clicking the Button1 button a page with the Last Page label is added to the wizard.
See also: