CT Draw rectangle

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

version 1


CT Draw rectangle (area; left; top; right; bottom; round) 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)
roundRealCorner rounding amount (in points)
Function resultLongintThe new object's Object ID

Description

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

round controls the amount of corner rounding in the new rectangle. If round equals zero, there is no corner rounding.

Example

The following method draws a rounded rectangle in the chart area:

   $Rect:=CT Draw rectangle (Area;5;5;200;200;5)

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