OBJSetRefPointΒΆ

OBJSetRefPoint specifies, to which corner of the object the position coordinates refer.

bool = OBJSetRefPoint(hobj, nRefPointWC)

Return Value

bool is TRUE (1) if the function was successful, and FALSE (0) if an error occued.

Parameters

hobj

hobj identifies the text, rectangle, table or ellipse object.

nRefPointWC

nRefPointWC is an OR combination of two of the following values:

Name

Value

Meaning

LEFT

4

Left corner.

CENTER

2

Center between left and right corner.

RIGHT

1

Right corner.

TOP

8

Top corner.

MIDDLE

16

Center between top and bottom corner.

BOTTOM

32

Bottom corner.

Example

OBJSetRefPoint(hTable, LEFT | TOP);

id-329311