mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@10279 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6b30ec4921
commit
2bb38b8f97
14 changed files with 26 additions and 44 deletions
|
|
@ -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); };
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue