mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
22 lines
359 B
C++
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, 200).TopPos(10, 60));
|
|
button.SetLabel("Click me!");
|
|
button << [=] {
|
|
PromptOK("You have clicked the button!");
|
|
};
|
|
}
|
|
};
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
MyAppWindow app;
|
|
app.Run();
|
|
}
|