mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
30 lines
457 B
C++
30 lines
457 B
C++
#include "WithEnterActionTest.h"
|
|
|
|
static int ii = 0;
|
|
|
|
void WithEnterActionTest::Change()
|
|
{
|
|
edrd <<= ~ed;
|
|
ei <<= ++ii;
|
|
}
|
|
|
|
void WithEnterActionTest::Change2()
|
|
{
|
|
edrd <<= ~ed2;
|
|
}
|
|
|
|
WithEnterActionTest::WithEnterActionTest()
|
|
{
|
|
CtrlLayout(*this, "Window title");
|
|
Add(ed.HSizePos(8,8).TopPos(10,20));
|
|
ed <<= THISBACK(Change);
|
|
ed2 <<= THISBACK(Change2);
|
|
|
|
ed.Key(K_ENTER, 1);
|
|
}
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
WithEnterActionTest().Run();
|
|
}
|
|
|