From 4a45b1dccc35cba0205f49be2bbb390874d11289 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Tue, 13 Nov 2007 16:44:23 +0100 Subject: [PATCH] examples --- examples/example-1.ycp | 2 +- examples/example-4.ycp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 examples/example-4.ycp diff --git a/examples/example-1.ycp b/examples/example-1.ycp index 4997e13..16060f8 100644 --- a/examples/example-1.ycp +++ b/examples/example-1.ycp @@ -4,7 +4,7 @@ // then close the dialog and terminate. UI::OpenDialog( - `Label( "&OK" ) + `PushButton( "&OK" ) ); UI::UserInput(); diff --git a/examples/example-4.ycp b/examples/example-4.ycp new file mode 100644 index 0000000..4997e13 --- /dev/null +++ b/examples/example-4.ycp @@ -0,0 +1,13 @@ +{ + // 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(); +} + -- 2.39.2