mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@12214 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7bb38969c0
commit
b1ecbfe488
3 changed files with 26 additions and 1 deletions
9
upptst/DrawPolyPolygon/DrawPolyPolygon.upp
Normal file
9
upptst/DrawPolyPolygon/DrawPolyPolygon.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
16
upptst/DrawPolyPolygon/main.cpp
Normal file
16
upptst/DrawPolyPolygon/main.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct MyApp : TopWindow {
|
||||
virtual void Paint(Draw& w);
|
||||
};
|
||||
|
||||
void MyApp::Paint(Draw& w)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ void MyApp::Paint(Draw& w)
|
|||
int x = 0;
|
||||
int y = 0;
|
||||
|
||||
Font fnt = StdFont();
|
||||
Font fnt = Arial();
|
||||
fnt = monaco().Italic();
|
||||
while(angle < 360) {
|
||||
w.DrawText(x, y, AsString(angle));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue