#include using namespace Upp; #define LAYOUTFILE #include GUI_APP_MAIN { String text = "Some text"; bool option = true; WithCtrlRetrieverLayout dlg; CtrlLayoutOK(dlg, "CtrlRetriever example"); CtrlRetriever r; r (dlg.option, option) (dlg.text, text) ; dlg.Run(); r.Retrieve(); PromptOK(String().Cat() << "text: [* " << DeQtf(text) << "]&" << "option: [* " << (option ? "true" : "false")); }