Sign in Join
FPDoc Onlineexperiment

TShape.Pen property

Member of TShapepublishedIn unit ExtCtrls

The Pen used to draw lines on the shaped control.

Declaration

pascal
property Pen:;

Description

Pen is a TPen property which contains the attributes used to draw lines for the shape on the control. Its Color property can be used to control the fill color for the lines. Its Style property determines the line drawing style like solid, dotted, or dashed.

Resources allocated to Pen are managed by the class instance in the Create and Destroy methods. Setting a new value for the property causes Invalidate to be called to redraw the control.

Brush and Pen are used in the DrawToCanvas method, and in UpdateMask when the internal mask image is created for the shaped control.

Use Brush to set attributes like the fill color and opacity for the Shape on the control.

This description is the one of ExtCtrls.TCustomShape.Pen.

See also

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