mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
21 lines
405 B
C++
21 lines
405 B
C++
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
TopWindow w;
|
|
w.Sizeable().Zoomable();
|
|
w.SetMinSize(Size(600, 600));
|
|
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();
|
|
}
|
|
}
|