Name

Wizard::SetContents — Set the contents of a wizard dialog

Synopsis

Import Wizard;
void Wizard::SetContents ( string  title ,
  term  contents ,
  string  help_text ,
  boolean  has_back ,
  boolean  has_next );

Parameters

string title

Dialog Title

term contents

The Dialog contents

string help_text

Help text

boolean has_back

Is the Back button enabled?

boolean has_next

Is the Next button enabled?

Return Value

void

Description

How the general framework for the installation wizard should look like. This function creates and shows a dialog.

Examples

          /*
 * Trivial wizard dialog example
 *
 * Author: Stefan Hundhammer <sh@suse.de>
 *
 * $Id: wizard1.ycp,v 1.2 2004/09/15 19:11:14 nashif Exp $
 */
{
    import "Wizard";


    Wizard::CreateDialog();

    term   contents  = `Label( "Wizard contents" );
    string headline  = "Trivial Wizard Example";
    string help_text = "<p>Help text</p>";

    Wizard::SetContents( headline, contents, help_text,
			 false,		// have back button
			 true );	// have next button

    Wizard::UserInput();
    UI::CloseDialog();
}


        

Screenshot