{ // Build a dialog with one button. // Wait until that button is clicked, // then close the dialog and terminate. UI::OpenDialog( `Label( "&OK" ) ); UI::UserInput(); UI::CloseDialog(); }