Add(Sheet: IWizardPage);
Sheet is an 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 pressing the Button1 button a page with the Last page inscription is added to the wizard.
See also: