Form Properties - Drawing Page

There are many combinations of Form Drawing properties; only a limited subset is shown in this Help file.


DrawMode

DrawMode determine how the color lines and fills is affected by the color on which they are drawn. DrawMode settings are typically used for screen animations.

See Also:

Draw Mode Property

Examples of DrawMode:

 

0 - Blackness

1 - NotMergePen

2 - MaskNotPen

3 - NotCopyPen

4 - MaskPenNot

5 - Invert

6 - XorPen

7 - NotMaskPen

8 - Mask Pen

9 - NotXorPen

10 - Nop

11 - MergeNotPen

12 - CopyPen (default)

13 - MergePenNot

14 - MergePen

15 - Whiteness

 

 


DrawStyle

DrawStyle affects the way lines are drawn. DrawStyles are only applied to when the lines have a width of one pixel. Line widths greater than one pixel are drawn as solid lines.

Examples of DrawStyle:

 

0 - Solid

1 - Dashed

 

2 - Dot

 

3 - DashDot

4 - DashDotDot

5 - Invisible

6 - InsideSolid

 

 


FillStyle

FillStyle affects how area fills are drawn.

Examples of FillStyle:

 

0 - Solid

1 - Transparent

 

2 - HorizontalLine

 

3 - VerticalLine

4 - UpwardDiagonal

5-DownwardDiagonal

6 - Cross

7 - DiagonalCross

 


Palette Mode

PaletteMode affects the colors with which the form and its controls are drawn.

See Also

Palette Mode Property

Examples of PaletteMode:

 

0 - Halftone

 - - - - - - - - - - - - - -
Image not avail.

 

 

1 - UseZOrder

 - - - - - - - - - - - - - -
Image not avail.

 

 

2 - Custom

 - - - - - - - - - - - - - -
Image not avail.

 

 

3 - Container

 - - - - - - - - - - - - - -
Image not avail.

 

 

4 - None

 - - - - - - - - - - - - - -
Image not avail.

 

 

 


DrawWidth

DrawWidth affects the width of lines. When DrawWidth is greater than 1, only solid lines are drawn.

Examples of DrawWidth:

 

DrawWidth = 1

DrawWidth = 3

DrawWidth = 9


Mouse Pointer

Sets the shape of mouse pointer displayed when the mouse is over the object: Default, Arrow, Cross, and I Beam.

AutoRedraw

AutoRedraw enables automatic repainting of the graphics in a window. In the following example, two forms (Fills form and Lines form) are partially obscured. When the obscuring object is moved (MyForm) each form behind MyForm behaves differently. The Fills form below does not have AutoRedraw selected. The Lines form does have AutoRedraw selected.

Examples of AutoRedraw:

 

Fills and Lines forms obscured
by MyForm.

Obscuring object (MyForm)
is moved

The Lines form is redrawn. The Circles form is not—resulting in a partially erased image. If you expect a form will be obscured you should consider using AutoRedraw. There is a penalty for using AutoRedraw; it requires more memory to save the drawing.

The OnPaint event can be used to execute code that redraws a screen and yield the same results as using AutoRedraw. Only one of these techniques should be used. While executing an OnPaint procedure may take more time, using AutoRedraw may use more RAM.


XP Style

if Checked, sets the XP visual style of the form and its controls at run time.

FontTransparent

If FontTransparent is unchecked, the text background is drawn. If FontTransparent is checked, the text background is not drawn.

Examples of FontTransparent:

 

FontTransparent
is unchecked

 

FontTransparent
is checked