A pen is a drawing tool for drawing lines and outlines; i.e., for drawing lines and painting the outline of rectangles, ellipses, etc. It has a colour, a width and a style. On a monochrome display, the all non-white pens are drawn as black.
The possible pen styles are:
Instead of using one of these styles, an arbitrary stipple bitmap can be specified.
To avoid creating multiple pens with the same characteristics, use the global wx:pen-list% object wx:the-pen-list.
Creates a pen using a colour object. See wx:pen% for the possible values of the style argument.
Creates a pen using a colour name; a colour is found for the name through the global wx:colour-database% object wx:thecolour-database. See wx:pen% for the possible values of the style argument.