DrawMode Property

Applies To   Report.

Description

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.

Setting

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).


(continued)

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.


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.

Remarks

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.

See Also   BackColor property, BackStyle property, Circle method, DrawStyle property, DrawWidth property, Event properties, FillColor property, FillStyle property, ForeColor property, Line method, PSet method.