Insert(Index: Integer; Page: IWizardPage);
Index. The parameter that determines index of the page that is inserted to the wizard.
Page. The parameter that determines the page that will be inserted to the Wizard component.
The Insert method inserts page to the specified wizard page.
Executing the example requires a form, the Button1 button on the form, and the Wizard component named Wizard1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
PageWiz: IWizardPage;
Lab: ILabel;
Begin
PageWiz := New WizardPage.Create;
Lab := New Label.Create;
Lab.Parent := PageWiz;
Lab.Text := "First page";
Wizard1.Pages.Insert(0, PageWiz);
End Sub Button1OnClick;
After clicking the button the first page with the First Page label is inserted to the wizard.
See also: