git-svn-id: svn://ultimatepp.org/upp/trunk@11021 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-04-22 08:36:06 +00:00
parent 9ede53f679
commit 3eec741a60
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,9 @@
uses
CtrlLib;
file
main.cpp;
mainconfig
"" = "GUI";

View file

@ -0,0 +1,22 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyApp : TopWindow {
virtual void LeftDown(Point p, dword keyflags) {
FullScreen(!IsFullScreen());
}
virtual void Paint(Draw& w) {
w.DrawRect(GetSize(), White());
w.DrawText(0, 0, IsFullScreen() ? "FULLSCREEN" : "OVERLAPPED");
}
MyApp() {
Zoomable().Sizeable();
}
};
GUI_APP_MAIN
{
MyApp().Run();
}