ultimatepp/reference/IdCtrls/main.cpp
cxl dd6ea32992 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@5538 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-11-10 10:51:52 +00:00

32 lines
No EOL
406 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct Dialog : WithDialogLayout<TopWindow> {
typedef Dialog CLASSNAME;
IdCtrls ctrls;
Dialog();
};
Dialog::Dialog()
{
CtrlLayout(*this, "Dialog");
ctrls
(FIRSTNAME, firstname)
(LASTNAME, lastname)
(YEAR, year)
;
}
GUI_APP_MAIN
{
ValueMap m;
LoadFromJsonFile(m);
Dialog dlg;
dlg.ctrls.Set(m);
dlg.Execute();
StoreAsJsonFile(m);
}