Create a library with the background image
Create a style for page with the image as background
Create a style for the box1 - colour lime, border black with 1px width, alignment to top-left.
Create a style for the box2 - colour darkorange, border white with 3px width, alignment to center
Create a style for the box3 - colour lime, border black with 1px width, alignment to bottom-right.
Define a page named "pageName" with style "pageStyle" Set current position to X=20px, Y=20px
Draw the first box - height=100px, width=150px
Set current position to X=240px, Y=136px
Draw the "box2" with style "drawStyle2"
Draw the last box "box3", the position is defined here directly in DRAW command - X=450px, Y=250px
After loading show the page named "pageName"
|
LIB(background,"SDHC/bground.png");
STYLE(pageStyle, Page) { image = background; }
STYLE(drawStyle1, Draw) { type = Box; back = lime; col = black; width = 1; currel=TL; }
STYLE(drawStyle2, Draw) { type = Box; back = darkorange; col = white; width = 3; currel=CC; }
STYLE(drawStyle3, Draw) { type = Box; back = deepskyblue; col = maroon; width = 5; currel=BR; }
PAGE(pageName, pageStyle)
{
POSN(20, 20);
DRAW(box1, 100, 150, drawStyle1);
POSN(240, 136);
DRAW(box2, 150, 150, drawStyle2);
DRAW(box3, 200, 100, drawStyle3, 450, 250);
}
SHOW(pageName);
|