Sign in Join
FPDoc Onlineexperiment

TPen.Style property

Member of TPenpublishedIn unit Graphics

Contains the line drawing style for the pen.

Declaration

pascal
property Style: default psSolid;

Description

Style is a TPenStyle property with the style used to draw lines with the Pen. It can contain one of the following constant values:

  • psSolid
  • psDash
  • psDot
  • psDashDot
  • psDashDotDot
  • psInsideFrame
  • psPattern
  • psClear

psDash, psDot, psDashDot, and psDashDotDot are drawn using the corresponding TPenPattern for the Style. On the Windows platform, these styles are not available if Width has any value other than 1.

psInsideFrame uses a solid drawing style, and a Color dithered to one of the values in the color table for the device. The content drawn with the pen is reduced in size so that it appears inside of a bounding rectangle including the Width for the pen.

psClear, in general, tells the implementing class or routine that the drawing operation is not needed.

The default value for the property is psSolid. Setting a new value for the property causes the handle in Reference to be freed. The Changed method is called to signal the OnChange event handler (when assigned).

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.