Drawing one or more edges of a rectangleΒΆ

DrawEdge()

Draw one or more edges of a rectangle


SYNTAX

DrawEdge(window_id, left, top, right, bottom, edge, flags)

Draw one or more edges of a rectangle.

The first four parameters specify the position of the rectangle:

window_id

The identifier of the window in which the edge is to be drawn. To print it in the current report, specify NULL instead of a window_id.

left

The x co-ordinate of the upper-left corner of the rectangle

top

The y co-ordinate of the upper-left corner of the rectangle

right

The x co-ordinate of the lower-right corner of the rectangle

bottom

The y co-ordinate of the lower-right corner of the rectangle

edge

The type of outer and inner edge to be drawn, defining the inner border and outer border. The valid values for edge are:

EDGE_BUMP

Raised outer edge, sunken inner edge

EDGE_ETCHED

Sunken outer edge, raised inner edge

EDGE_RAISED

Raised outer and inner edges

EDGE_SUNKEN

Sunken outer and inner edges

flags

The border type. A combination of flags may be used, in which case the flags should be separated by the | character. The available flags are:

EF_ADJUST

Rectangle to be adjusted to leave space for client area

EF_BOTTOM

Bottom of border rectangle

EF_BOTTOMLEFT

Bottom and left side of border rectangle

EF_BOTTOMRIGHT

Bottom and right side of border rectangle

EF_DIAGONAL

Diagonal border

EF_FLAT

Flat border

EF_LEFT

Left side of border rectangle

EF_MIDDLE

Interior of rectangle to be filled

EF_MONO

One-dimensional border

EF_RECT

Entire border rectangle

EF_RIGHT

Right side of border rectangle

EF_SOFT

Soft buttons instead of tiles

EF_TOP

Top of border rectangle

EF_TOPLEFT

Top and left side of border rectangle

EF_TOPRIGHT

Top and right side of border rectangle

EF_DIAGONAL_ENDBOTTOMLEFT

Diagonal border. The end point is the bottom-left corner of the rectangle; the origin is the top-right corner.

EF_DIAGONAL_ENDBOTTOMRIGHT

Diagonal border. The end point is the bottom-right corner of the rectangle; the origin is the top-left corner.

EF_DIAGONAL_ENDTOPLEFT

Diagonal border. The end point is the top-left corner of the rectangle; the origin is the bottom-right corner.

EF_DIAGONAL_ENDTOPRIGHT

Diagonal border. The end point is the top-right corner of the rectangle; the origin is the bottom-left corner.


RELATED TOPICS

Drawing operations

Draw functions