template "U++ Basic CtrlLib application" main; option "Create header" header; option "Add MyApp" myapp; @@<:PACKAGE:>.h ??header #ifndef _<:PACKAGE:>_<:PACKAGE:>_h #define _<:PACKAGE:>_<:PACKAGE:>_h #include using namespace Upp; #endif @@main.cpp #include <:?header:>"<:PACKAGE:>.h"<:/:> using namespace Upp;<:.:> <:?myapp:> struct MyApp : TopWindow { void Paint(Draw& w) override; }; <:.:> GUI_APP_MAIN {<:?myapp:> MyApp().Run();<:.:> } @@<:PACKAGE:>.upp uses CtrlLib; file<:?header:> <:PACKAGE:>.h,<:.:> main.cpp; mainconfig "" = "GUI";