Thursday, July 30, 2015

SAPSCRIPT BOX




Simple Box

/: BOX FRAME 10 TW

You can use the POSITION and SIZE commands to set default parameters for a box.

You can write:

/: POSITION XORIGIN '11.21' YORIGIN '5.31' MM 
/: SIZE HEIGHT '2' MM WIDTH '76' MM 
/: BOX FRAME 10 TW INTENSITY 10


This can be useful if you gave several boxes that share the same parameters.

If you want to set the position relatively to the window use POSITION WINDOW
to set the position to the top/left start of the window. Then use POSITION
to set the current position relatively to the start of the Window.

Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.

/: POSITION WINDOW 
/: POSITION XORIGIN '+5' MM YORIGIN '+10' MM


the position is now 5 MM from the left and 10 MM from the top of the window

Drawing a line. You can draw a line by setting the Height or Widths to 0
and add a frame. E.g. a horizontal line:

/: SIZE HEIGHT '0' MM WIDTH '200' MM

https://pijush.wordpress.com/2007/05/08/to-print-the-total-in-a-sapscript/

No comments:

Post a Comment