Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

(SelectPen)

Mnemonic: (SelectPen = style, width, red, green, blue)
Discussion: This mnemonic selects the pen described by style, width and red, green, blue.

Available pen styles are:

PS.SOLID Creates a solid pen.
PS.DASH Creates a dashed pen. Valid only when the pen width is 1 or less, in device units.
PS.DOT Creates a dotted pen. Valid only when the pen width is 1 or less, in device units.
PS.DASHDOT Creates a pen with alternating dashes and dots. Valid only when the pen width is 1 or less, in device units.
PS.DASHDOTDOT Creates a pen with alternating dashes and double dots. Valid only when the pen width is 1 or less, in device units.
PS.NULL Creates a null pen.
PS.INSIDEFRAME Creates a pen that draws a line inside the frame of closed shapes produced by the Windows GDI output functions that specify a bounding rectangle (for example, the Ellipse, Rectangle, RoundRect, Pie, and Chord member functions). When this style is used with Windows GDI output functions that do not specify a bounding rectangle (for example, the LineTo member function), the drawing area of the pen is not limited by a frame.

If the width of the pen PtrWidth is 0, the width in device units is always 1 pixel, regardless of the mapping mode.

Note: See (SetTextColor) for color parameter information.

History: This mnemonic is valid in Comet98 and greater.