mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
19 lines
341 B
C++
19 lines
341 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
#define LAYOUTFILE <Gui20d/myapp.lay>
|
|
#include <CtrlCore/lay.h>
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
WithMyAppLayout<TopWindow> app;
|
|
CtrlLayoutOKCancel(app, "MyApp");
|
|
switch(app.Run()) {
|
|
case IDOK:
|
|
PromptOK(String().Cat() << "OK: " << ~app.date);
|
|
break;
|
|
case IDCANCEL:
|
|
Exclamation("Canceled");
|
|
}
|
|
}
|