Author: aschnell Date: Wed Jun 18 12:32:30 2008 New Revision: 48384 URL: http://svn.opensuse.org/viewcvs/yast?rev=48384&view=rev Log: - added example to show disabling of children Added: trunk/ycp-ui-bindings/examples/Enabling3.ycp Added: trunk/ycp-ui-bindings/examples/Enabling3.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ycp-ui-bindings/examples/Enabling3.ycp?rev=48384&view=auto ============================================================================== --- trunk/ycp-ui-bindings/examples/Enabling3.ycp (added) +++ trunk/ycp-ui-bindings/examples/Enabling3.ycp Wed Jun 18 12:32:30 2008 @@ -0,0 +1,23 @@ +{ + UI::OpenDialog( + `VBox( + `VBox( + `id(`box), `opt(`disabled), + `InputField("TestEntry", ""), + `CheckBox("Looks fine") + ), + `PushButton(`id(`change), "&Change"), + `PushButton(`id(`cancel), "&Quit") + ) + ); + + boolean enabled = false; + + while (UI::UserInput() != `cancel) + { + enabled = !enabled; + UI::ChangeWidget(`id(`box), `Enabled, enabled); + } + + UI::CloseDialog(); +} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org