ultimatepp/tutorial/Gui13/main.cpp
klugier f66ea03045 Tutorial: GUI tutorial typedef removal.
git-svn-id: svn://ultimatepp.org/upp/trunk@15426 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-11-16 01:40:57 +00:00

22 lines
359 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyAppWindow : TopWindow {
Button button;
MyAppWindow() {
Title("My application with button");
Add(button.LeftPos(10, 100).TopPos(10, 30));
button.SetLabel("Click me!");
button << [=] {
PromptOK("You have clicked the button!");
};
}
};
GUI_APP_MAIN
{
MyAppWindow app;
app.Run();
}