ProvideX V8.20 > Language Reference > 5. Mnemonics
631
'PM' Mnemonic
      Portrait Mode
GUI Display/Printer
Description
Use 'PM' to switch to portrait mode when printing to *WINPRT*, p.756. This is the
opposite of the 'LM' Mnemonic, p.616.
'POLYGON' Mnemonic
     Define/Draw a Polygon
GUI Display/Printer
Format
'POLYGON'(x,y,x,y,x,y,x,y ...)
Where:
x,y
Set of point/position coordinates in graphical units. Numeric expression.
Description
Use 'POLYGON' to draw (print) a polygon (e.g., triangle, hexagon ...). ProvideX joins
the various x,y points to form the polygon. Use graphical units or @X(col) and
@Y(line) functions for the coordinates.
The 'POLYGON' mnemonic uses current attributes for the 'FILL' Mnemonic, p.605,
and the 'PEN' Mnemonic, p.628.
Example
The example below creates an irregular four-sided figure by setting the coordinates
for the four corners:
0030 PRINT 'PEN'(1,3,8),'FILL'(2,6)
0040 PRINT 'POLYGON'(224,450,100,100,400,200,390,390)
'POP' or 'WR' Mnemonic
 Restore Previous Window
GUI Display or Character Display
Format
Long or short form: 'POP' or 'WR'
Description
Use either 'POP' or 'WR' to remove the current window from the top of the stack and
restore the previous window.