mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.uppstst
git-svn-id: svn://ultimatepp.org/upp/trunk@11021 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9ede53f679
commit
3eec741a60
2 changed files with 31 additions and 0 deletions
9
upptst/FullScreen/FullScreen.upp
Normal file
9
upptst/FullScreen/FullScreen.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
22
upptst/FullScreen/main.cpp
Normal file
22
upptst/FullScreen/main.cpp
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue