GRAPHIC STYLE statement

Purpose

Set the line style to be used by various graphical statements in the selected graphic target.

Syntax

GRAPHIC STYLE linestyle&

Remarks

The graphic target must first be selected with GRAPHIC ATTACH.  Due to limitations in the Windows graphics device interface (GDI), styles are only applied if the line width is set to 1, the default.  If the line width is greater than 1, the style is interpreted as 0, solid.

Available line styles are:

0

Solid (default)

1

Dash

2

Dot

3

DashDot

4

DashDotDot

See also

GRAPHIC ARC, GRAPHIC ATTACH, GRAPHIC BOX, GRAPHIC ELLIPSE, GRAPHIC LINE, GRAPHIC PIE, GRAPHIC WIDTH

Example

' Draw a square box with red, dotted lines

GRAPHIC WIDTH 1

GRAPHIC STYLE 2

GRAPHIC BOX (10, 10) - (110, 110), 0, %RED