what are possible Pen styles and their numbers for Pen Obj ?

what are possible Pen styles and their numbers for Pen Obj ?

Postby Milan Mehta » Sun Apr 02, 2006 6:59 am

Hello All,

what are the possible Pen styles and their numbers TO be Used WITH Pen OBJECT ?

TIA
Milan.
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India

Postby Antonio Linares » Sun Apr 02, 2006 11:10 am

Milan,

From the Window API docs: (search for these defines at bcc55\include)

The CreatePen function creates a logical pen that has the specified style, width, and color. The pen can subsequently be selected into a device context and used to draw lines and curves.

HPEN CreatePen(

int fnPenStyle, // pen style
int nWidth, // pen width
COLORREF crColor // pen color
);

Parameters

fnPenStyle

Specifies the pen style. It can be any one of the following values:

Style Description
PS_SOLID Pen is solid.
PS_DASH Pen is dashed. This style is valid only when the pen width is one or less in device units.
PS_DOT Pen is dotted. This style is valid only when the pen width is one or less in device units.
PS_DASHDOT Pen has alternating dashes and dots. This style is valid only when the pen width is one or less in device units.
PS_DASHDOTDOT Pen has alternating dashes and double dots. This style is valid only when the pen width is one or less in device units.
PS_NULL Pen is invisible.
PS_INSIDEFRAME Pen is solid. When this pen is used in any graphics device interface (GDI) drawing function that takes a bounding rectangle, the dimensions of the figure are shrunk so that it fits entirely in the bounding rectangle, taking into account the width of the pen. This applies only to geometric pens.

nWidth

Specifies the width of the pen, in logical units. If nWidth is zero, the pen is a single pixel wide, regardless of the current transformation.

crColor

Specifies a color reference for the pen color.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 78 guests