Table of Contents

PrintSetPen function

Description

Sets the style, width, and color of the pen as defined by the Windows SDK.

Syntax

status = PrintSetPen(style, width, color)

The PrintSetPen function has the following parameters:

ParameterDescription
styleAs defined in PRINT_EQUATES, and Windows SDK

Value Description
0 - Solid line.
1 - Dashed line.
2 - Dotted line.
3 - Dash-dot line.
4 - Dash-dot-dot line.
widthNumber of thousandths of an inch.
colorRGB based color.

Returns

True for successful execution or False for failure.

Example

* Sets the print pen to draw a dash-dot line.
PrintSetPen(3, 5, 0)