Win32Prn() > Print output methods xHarbour Developers Network  

oWin32Prn:setPen()

Defines the pen for drawing lines.

Syntax

:setPen( <nStyle>, <nWidth>, <nColor> ) --> nPenHandle

Arguments

<nStyle>
This numeric parameter defines the pen style used for drawing lines. #define constants are available in the file WinGdi.ch for setting the pen style:

Constants for pen styles
ConstantValueDescription
PS_SOLID0Pen draws solid line
PS_DASH1Pen draws dashed line (-------)
PS_DOT2Pen draws dotted line (.......)
PS_DASHDOT3Pen draws dashes and dots (_._._._)
PS_DASHDOTDOT4Pen draws dashes and two dots (_.._.._)
PS_NULL5Pen is invisible

<nWidth>
This numeric parameter defines the line width in pixels. When set to zero, the pen draws a 1 pixel wide line, regardless of any transformation.
<nColor>
This is a numeric RGB color value defining the line color.

Description

Method :setPen() defines the current pen used for drawing lines. Lines are drawn by methods producing basic graphical elements such as :arc(), :box() or :line(). The method returns a numeric handle to the current pen. This can be used with other Windows GDI functions.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe