changed svn layout

git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
mdelfede 2008-06-07 22:31:27 +00:00
commit 263ff5f895
2665 changed files with 642923 additions and 0 deletions

View file

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

19
tutorial/Draw06/main.cpp Normal file
View file

@ -0,0 +1,19 @@
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
PrinterJob pd("My printer job");
pd.CurrentPage(0);
pd.MinMaxPage(0, 1);
if(pd.Execute()) {
Draw& w = pd.GetDraw();
w.StartPage();
w.DrawText(200, 1200, "Helo world!", Arial(600));
w.EndPage();
w.StartPage();
w.DrawText(200, 1200, "Second page", Roman(600));
w.EndPage();
}
}