Name
SetMargins -- define the margins for printed text
Synopsis
SetMargins(left, right)
Function
This function allows you to define the margins that shall be used for printing text using the Print() function. This is very useful if you only want to print text in a specific area of your display. The left argument specifies the left end of the margin and the right argument is the right end of the margin.

The default setting for left is 0 and for right the default setting is your display width minus 1.

Inputs
left
left end of the margin (in pixels)
right
right end of the margin (in pixels)
Example
SetMargins(200,300)
Print("Hello World. This is my first program using margins.")
The above code defines the margins 200 and 300, which means that text output is only made between pixels 200 and 300. Then it prints some text.

Show TOC