Author: sh-sh-sh Date: Thu Apr 3 15:43:52 2008 New Revision: 46034 URL: http://svn.opensuse.org/viewcvs/yast?rev=46034&view=rev Log: new example Added: trunk/ycp-ui-bindings/examples/HelpText.ycp Added: trunk/ycp-ui-bindings/examples/HelpText.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/examples/HelpText... ============================================================================== --- trunk/ycp-ui-bindings/examples/HelpText.ycp (added) +++ trunk/ycp-ui-bindings/examples/HelpText.ycp Thu Apr 3 15:43:52 2008 @@ -0,0 +1,17 @@ +// Simple example for help text +{ + UI::OpenDialog( + `VBox(`id(`mainLayout), + `Label("Hello, World!"), + `HBox( + `PushButton(`opt(`helpButton ), "&Help"), + `PushButton(`opt(`default ), "&OK") + ) + ) + ); + UI::ChangeWidget(`mainLayout, `HelpText, + "Oh, come on, do you really need help for this?" ); + + UI::UserInput(); + UI::CloseDialog(); +} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org