Sunday, May 9, 2021

Making your own album 29

click the 'Documents' header to see previous entries
https://rainbowstampsandcoins.blogspot.com/search/label/documents     

5.5     Different ways to present boxes

We start with a blank programming page, and copy-paste the default page settings as below:

ALBUM_PAGES_SIZE (210.0 297.0)
ALBUM_PAGES_MARGINS (22.0 15.0 10.0 10.0 )
ALBUM_PAGES_BORDER (0.60 0 0.60 0.75)
ALBUM_PAGES_SPACING (6.0 4.0)
ALBUM_PAGES_TITLE (TB 20 "My collection")

PAGE_START

PAGE_TEXT_CENTRE (TB 12 "\nBoxes is a different way ")
PAGE_RULE_H (0.1 -1 8)

PAGE_TEXT (HB 11 "Variations on box borders")

Save this as Test Design 12a

5.5.1     Boxes with different kind of borders

5.5.1.1     4 styles

Additional to what we have seen in 5.4, we can present most of our boxes in a different way, when it comes to the style of framing of the boxes.
Without any specific parameters, we get a full line as border, but it can be different too :

There are 4 variations:
Above the ‘STAMP_ADD’- command, we can determinate the type of frame we want to see.
These are the possibilities:

STAMP_BORDER_STYLE (DOTTED) – dotted frame

STAMP_BORDER_STYLE (DOT_DASH) – dots and dashes
STAMP_BORDER_STYLE (DASHED)
– with dashes
STAMP_BORDER_STYLE (SOLID)
– back to normal (full line)

This specific border command, is valid until we choose another one. Once added, it will remain in use, till the end of the page, or till we change it again.
To return to the original (full) line, we can select the (SOLID) – comand.
For this exercise, we can try each type once.

Copy-paste the codes below, and generate the PDF. Don’t forget to close it, in order to continue working.

ROW_START_FS (HN 8 0.1 6.0)

# all boxes are on one line

# no special borders for the first box
STAMP_ADD (25.0 26.0 "normal" "" "LO 3" "")

# for the second box, we choose ‘dotted’
STAMP_BORDER_STYLE (DOTTED)

STAMP_ADD (25.0 26.0 "dotted" "" "MI 4" "")

#box 3 is with dots and dashes
STAMP_BORDER_STYLE (DOT_DASH)

STAMP_ADD (25.0 26.0 "dots and dashes" "" "YT 5" "")

# the fourth box is ‘dashed’
STAMP_BORDER_STYLE (DASHED)

STAMP_ADD (25.0 26.0 "dashed" "" "SG 6" "")

# finally the last box is normal again, we use the ‘solid’ command.

# without style give, the previous would be repeated
STAMP_BORDER_STYLE (SOLID)

STAMP_ADD (25.0 26.0 "back to normal" "" "SC 7" "")

Dotted and dashed square boxes

5.5.1.2     Different border styles with triangles

Start a new line in your program page, by using the ROW_START command, and see the different border styles on triangles:

PAGE_RULE_H (0.1 -1 8)

ROW_START_FS (HN 8 0.1 6.0)

STAMP_ADD_TRIANGLE (30.0 27.0 "normal" "" "MI 4" "")
STAMP_BORDER_STYLE (DOTTED)

STAMP_ADD_TRIANGLE_INV (30.0 27.0 "met \ndotted" "" "YT 5" "")
STAMP_BORDER_STYLE (DASHED)

STAMP_ADD_TRIANGLE (30.0 27.0 "dashes" "" "SG 6" "")

STAMP_BORDER_STYLE (DOT_DASH)

STAMP_ADD_TRIANGLE_INV (30.0 27.0 "dots and \ndashes" "" "SC 7" "")

Generate the PDF, and close again afterwards.

Dotted and dashed triangles

5.5.1.3     Different box frames with other shapes

This new command also works with other shapes:
We can try some combinations and start a new row for this

PAGE_RULE_H (0.1 -1 8)

ROW_START_FS (HN 8 0.1 6.0)

STAMP_BORDER_STYLE (DOTTED)
STAMP_ADD_OVAL (25 30 "ABC" "D" "E" "F")

STAMP_BORDER_STYLE (DASHED)
STAMP_ADD_TRIANGLE (26.0 26.0 "ABC" "D" "E" "F" 10.0)

STAMP_HEADING (HN 9 "New Year\n")

STAMP_BORDER_STYLE (DOTTED)

STAMP_ADD_TRIANGLE_INV (22.0 22.0 "ABC" "" "E" "" 10.0)

STAMP_HEADING (HN 9 "New Year\n")

STAMP_BORDER_STYLE (DASHED)

STAMP_ADD_HEXAGON (26.0 CU "HEXAGOON\nCORNER\nUP" "D" " " "F")

STAMP_BORDER_STYLE (DOT_DASH)

STAMP_ADD_OCTAGON (27.0 SU "OCTOGOON\nSIDE\nUP" " " "E" " ")

Generate the PDF and close afterwards:

Dotted and dashed trapezoids, rounds, hexagons and octagons

Remark : Since we did not return to the ‘solid’ line, our Page_Rule_H is das-dotted, like the last command in the previous line.
To prevent this, we need to add : Stamp_Border_Style (SOLID) after the last line in the previous exercise.
Remark : For the layout, it is better to choose only ONE type of border style, always 1, 2 or no headers, 1, 2, 3 or no footers. 

to be continued... 

previous part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-28.html
next part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-30.html

No comments: