mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
commit
263ff5f895
2665 changed files with 642923 additions and 0 deletions
9
tutorial/Draw06/Draw06.upp
Normal file
9
tutorial/Draw06/Draw06.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
|
||||
"main.cpp";
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
19
tutorial/Draw06/main.cpp
Normal file
19
tutorial/Draw06/main.cpp
Normal 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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue