Wizard::SetContents — Set the contents of a wizard dialog
Import Wizard;
void
Wizard::SetContents
( | string | title , |
term | contents , | |
string | help_text , | |
boolean | has_back , | |
boolean | has_next
) ; |
Dialog Title
The Dialog contents
Help text
Is the Back button enabled?
Is the Next button enabled?
How the general framework for the installation wizard should look like. This function creates and shows a dialog.
/* * 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(); } |