ultimatepp/uppdev/CtrlLibTest/main.cpp
cxl 61e458d786 Syncing uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@599 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-11-05 08:55:40 +00:00

31 lines
441 B
C++

#include "CtrlLibTest.h"
ChildWnd::ChildWnd()
{
CtrlLayout(*this, "Child Window");
btn1.Hide();
btn2.Hide();
}
CtrlLibTest::CtrlLibTest()
{
CtrlLayout(*this, "Main Window");
btn1 <<= THISBACK(OnPush1);
btn2 <<= THISBACK(OnPush2);
}
void CtrlLibTest::OnPush1()
{
wnd.Open(this);
wnd.TopMost();
}
void CtrlLibTest::OnPush2()
{
PromptOK("I'm invisible!");
}
GUI_APP_MAIN
{
CtrlLibTest().Run();
}