ultimatepp/tutorial/Draw06/main.cpp
mdelfede d2b54f7989 changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-06-07 22:31:27 +00:00

19 lines
362 B
C++

#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();
}
}