SetDrawPen(pen)
pen
to the pen that will be used for drawing to
palette output devices when the palette mode is #PALETTEMODE_PEN
. The palette mode can
be set using SetPaletteMode(). See SetPaletteMode for details.
When the palette mode has been set to #PALETTEMODE_PEN
, the following functions will use
the pen set using SetDrawPen()
instead of the color that is passed to them:
Note that in case the palette mode is #PALETTEMODE_PEN
, any shadow or border effect
also won't be drawn in the color that was set using SetFormStyle(),
SetFontStyle() or ShadowColor
or BorderColor
tags. Instead, shadow
and border will be drawn using the pen set via SetShadowPen() and
SetBorderPen(), respectively.
@DISPLAY {Palette = #PALETTE_DEFAULT} SetFillStyle(#FILLCOLOR) SetPaletteMode(#PALETTEMODE_PEN) SetDrawPen(10) Box(#CENTER, #CENTER, 320, 240)The code above will create a palette mode display and then draw a filled rectangle to the center of the screen using palette pen 10.