git-svn-id: svn://ultimatepp.org/upp/trunk@11224 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-07-12 07:44:54 +00:00
parent 6bd044568a
commit 6cfa070170
2 changed files with 29 additions and 0 deletions

View file

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

View file

@ -0,0 +1,20 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
TopWindow w;
w.Sizeable().Zoomable();
w.Title("Maximize me and close me - it should be possible to 'unmaximize' this window after it reopens");
TopWindow main;
main.Open();
for(;;) {
if(!w.IsOpen())
w.OpenMain();
if(!main.IsOpen())
break;
Ctrl::ProcessEvents();
}
}