RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Graphics.TPenStyle Enumeration

TPenStyle indicates the type of line a pen draws.

Pascal
TPenStyle = (
  psSolid,
  psDash,
  psDot,
  psDashDot,
  psDashDotDot,
  psClear,
  psInsideFrame,
  psUserStyle,
  psAlternate
);
C++
enum TPenStyle {
  psSolid,
  psDash,
  psDot,
  psDashDot,
  psDashDotDot,
  psClear,
  psInsideFrame,
  psUserStyle,
  psAlternate
};

Graphics

TPenStyle can have one of the following values:

Value 
Meaning 
psSolid  
A solid line.  
psDash  
A line made up of a series of dashes.  
psDot  
A line made up of a series of dots.  
psDashDot  
A line made up of alternating dashes and dots.  
psDashDotDot  
A line made up of a series of dash-dot-dot combinations.  
psClear  
No line is drawn (used to omit the line around shapes that draw an outline using the current pen).  
psInsideFrame  
A solid line, but one that may use a dithered color if Width is greater than 1.  
psAlternate  
The pen sets every other pixel. (This style is applicable only for cosmetic pens.)
This style is only valid for pens created with the ExtCreatePen API function. (See MS Windows SDK docs.)
This applies to both VCL and VCL.NET.  
psUserStyle  
The pen uses a styling array supplied by the user.
Thus style is only valid for pens created with the ExtCreatePen API function. (See MS Windows SDK docs.)
This applies to both VCL and VCL.NET.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!