DRAWUNITS Mnemonic - Set Unit of Measure for SYSGUI Drawing

Syntax

'DRAWUNITS'(int)

Description

The 'DRAWUNITS' mnemonic sets the units for drawing subsequent objects in the current context. This applies only to drawn objects (DRAWING coordinate system) and not to controls (CONTROL coordinate system). The 'DRAWUNITS' setting is lost if a context is destroyed and is not inherited by child windows. All windows are set to pixels until explicitly set with 'DRAWUNITS'.

Parameter

Description

int

Selects the units of measure from the table below.

Int

Unit of Measure

0

Sets units to pixels (default).

1

Sets units to thousandths-of-an-inch. When selecting thousandths-of-an-inch, all drawing mnemonics that take coordinates (except 'WORLD,' 'VIRTUAL,' and 'PENWIDTH') accept those units instead of pixels.

Use thousandths-of-an-inch for an object to appear in a particular position relative to the page printed with 'PWINDOW' and to appear in the same position on the screen (print previewing). Otherwise, because of printer resolution, objects may print larger or smaller than they appear on the screen. Objects do not need to be drawn in the same units. However, the relative positions of objects drawn in different units can change when changing devices or printing.

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing