DrawMode Property [Access 2003 VBA Language Reference]
You can use the DrawMode property to specify how the pen (the color used in drawing) interacts with existing background colors on a report when the Line , Circle , or Pset method is used to draw on a report when printing. Read/write Integer.
expression.DrawMode
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The DrawMode property uses the following settings.
Setting | Description |
---|---|
1 | Black pen color. |
2 | The inverse of setting 15 (NotMergePen). |
3 | The combination of the colors common to the background color and the inverse of the pen (MaskNotPen). |
4 | The inverse of setting 13 (NotCopyPen). |
5 | The combination of the colors common to both the pen and the inverse of the display (MaskPenNot). |
6 | The inverse of the display color (Invert). |
7 | The combination of the colors in the pen and in the display color, but not in both (XorPen). |
8 | The inverse of setting 9 (NotMaskPen). |
9 | The combination of the colors common to both the pen and the display (MaskPen). |
10 | The inverse of setting 7 (NotXorPen). |
11 | No operation — the output remains unchanged. In effect, this setting turns drawing off (Nop). |
12 | The combination of the display color and the inverse of the pen color (MergeNotPen). |
13 | (Default) The color specified by the ForeColor property (CopyPen). |
14 | The combination of the pen color and the inverse of the display color (MergePenNot). |
15 | The combination of the pen color and the display color (MergePen). |
16 | White pen color. |
Note The DrawMode property setting is an Integer value.
You can set the DrawMode property by using a macro or a Visual Basic event procedure specified by a section's OnPrint property setting.
Use this property to produce visual effects when drawing on a report. Microsoft Access compares each pixel in the draw pattern to the corresponding pixel in the existing background to determine how the drawing appears on the report. For example, setting 7 uses the Xor operator to combine a draw-pattern pixel with a background pixel.
Applies to | Report Object
See Also | BackColor Property | BackStyle Property | Circle Method | DrawStyle Property | DrawWidth Property | FillColor Property | FillStyle Property | ForeColor Property | Line Method | PSet Method