CT GET DEPTH

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

version 1


CT GET DEPTH (area; object; horizontal; vertical)

ParameterTypeDescription
areaLongint4D Chart area
objectLongintObject ID
horizontalIntegerReceives horizontal offset in points
verticalIntegerReceives vertical offset in points

Description

The CT GET DEPTH command returns the horizontal and vertical offsets (depth) of the graph specified by area and object. This command works only with two-dimensional graphs.

horizontal is the horizontal offset, measured in points. A positive value denotes an offset to the right; a negative value denotes an offset to the left.

horizontal = 5, vertical = 5

horizontal = -5, vertical = 5

vertical is the vertical offset, measured in points. A positive value denotes distance into the page from the X-axis; a negative value denotes distance out of the page from the X-axis.

horizontal = 5, vertical = - 5

Setting horizontal or vertical to zero removes the 3D effect for that dimension

Example

This example checks the depth of the chart specified by $ChartID and, if it the 3D effect is not present, sets it.

   CT GET DEPTH (vArea;$ChartID;$Horiz;$Vert)
   If ($Horiz=0) & ($Vert=0)
      CT SET DEPTH (vArea;$ChartID;10;10)
   End if 

See Also

CT SET DEPTH.


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