ultimatepp/bazaar/WithEnterActionTest/main.cpp
kohait 416bb85ad2 bazaar: Dispatcher: Link version, Gen: Visiting interface, WhenEnterAction: more flexible solution,
git-svn-id: svn://ultimatepp.org/upp/trunk@3098 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-01-26 09:52:56 +00:00

27 lines
422 B
C++

#include "WithEnterActionTest.h"
void WithEnterActionTest::Change()
{
edrd <<= ~ed;
}
void WithEnterActionTest::Change2()
{
edrd <<= ~ed2;
}
WithEnterActionTest::WithEnterActionTest()
{
CtrlLayout(*this, "Window title");
Add(ed.HSizePos(10,10).TopPos(10,20));
ed <<= THISBACK(Change);
ed2 <<= THISBACK(Change2);
ed.Key(K_ENTER, 1);
}
GUI_APP_MAIN
{
WithEnterActionTest().Run();
}