Contents Up Previous Next

Pen

A pen is used to control the colour and style of subsequent drawing operations on a device context.

pen-create
pen-delete


pen-create

long ( pen-create string colour long width word style)

long ( pen-create long colour-value long width word style)

Creates a pen for use in a device context. A pen is used for the outlines of graphic shapes. A brush must be set to fill the shapes.

colour is a wxWindows colour string such as "BLACK'', "CYAN''.

colour-value is a value returned from colour-create.

width specifies the width of the pen.

style may be one of wxSOLID, wxDOT, wxLONG_DASH, wxSHORT_DASH, wxTRANSPARENT.


pen-delete

long ( pen-delete long pen-id)

Deletes the given pen.