TiObjectCanvas.SetObjectPenStyle

TiObjectCanvas

Used to set an object's pen style property value.

type TPenStyle = (psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame);

procedure SetObjectPenStyle(Handle : Integer, Style : TPenStyle;

Description

Call SetObjectPenStyle to set an object's pen style property value.

These are the possible 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 serious 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.

Example

Delphi

iComponent.SetObjectPenStyle(5, psSolid);

C++ Builder

iComponent->SetObjectPenStyle(5, psSolid);

Contents | Index | Previous | Next