.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@10279 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-10-09 11:02:07 +00:00
parent 6b30ec4921
commit 2bb38b8f97
14 changed files with 26 additions and 44 deletions

View file

@ -7,16 +7,11 @@ using namespace Upp;
class MyApp : public WithLayout1<TopWindow> {
public:
void Layout1() { SetLayout_Layout1(*this); }
void Layout2() { SetLayout_Layout2(*this); }
typedef MyApp CLASSNAME;
MyApp()
{
CtrlLayout(*this, "Window title");
layout1 <<= THISBACK(Layout1);
layout2 <<= THISBACK(Layout2);
layout1 << [=] { SetLayout_Layout1(*this); };
layout2 << [=] { SetLayout_Layout2(*this); };
}
};