IWizardPages.Insert

Syntax

Insert(Index: Integer; Page: IWizardPage);

Parameters

Index - parameter that determines index of the page that is inserted to the wizard.

Page - parameter that determines the page that is inserted to the Wizard component.

Description

The Insert method enables the user to insert the wizard page to the position that is passed as the Index input parameter. The page is passed as the Sheet input parameter.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

PageWiz: IWizardPage;

Lab: ILabel;

Begin

PageWiz := New WizardPage.Create;

Lab := New Label.Create;

Lab.Text := "The First Page";

Wizard1.Pages.Insert(0, PageWiz);

Lab.Parent := Wizard1.Pages.Item(0);

End Sub Button1OnClick;

After clicking the Button1 button the first page with the First Page label is inserted into the wizard.

See also:

IWizardPages