CT Draw line

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT Draw line (area; left; top; right; bottom; arrowhead) Longint

ParameterTypeDescription
areaLongint4D Chart area
leftRealHorizontal position of start (in points)
topRealVertical position of start (in points)
rightRealHorizontal position of end (in points)
bottomRealVertical position of end (in points)
arrowheadIntegerArrow location code (see table)
Function resultLongintThe new object's Object ID

Description

CT Draw line creates a new line object in area and returns the new object's Object ID. The object is positioned according to the left, top, right, and bottom coordinates.

The following are the codes for the arrowhead parameter:

CodeLocation
-1Use default
0None
1At start
2At end
3Both ends

Example

The following method draws a line with arrowheads in the chart area:

   $Line:=CT Draw line (Area;10;10;50;50;3)

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next