mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@6589 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2a51384295
commit
c4d471c5f3
7 changed files with 71 additions and 3 deletions
|
|
@ -2,12 +2,24 @@
|
|||
|
||||
using namespace Upp;
|
||||
|
||||
void Background(Report *r)
|
||||
{
|
||||
Draw& w = *r;
|
||||
Size sz = r->GetSize();
|
||||
Image m = CtrlImg::exclamation();
|
||||
Size isz = m.GetSize();
|
||||
for(int x = -isz.cx / 2; x < sz.cx; x += isz.cx)
|
||||
for(int y = -isz.cy / 2; y < sz.cy; y += isz.cy)
|
||||
w.DrawImage(x, y, m);
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
Report r;
|
||||
r.WhenPage = callback1(Background, &r);
|
||||
r.Header("[A2< Header Page $$P");
|
||||
r.Footer("[A2> Footer Page $$P");
|
||||
r << "This is some [* QTF text";
|
||||
r << "This is some [* QTF text&something else";
|
||||
r << t_("顯示[* QTF 文字");
|
||||
r << "&&Let's report some table:";
|
||||
r << t_("輸出表格式報表:");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue