version 1
CT GET DEPTH (area; object; horizontal; vertical)
Parameter | Type | Description | |
area | Longint | 4D Chart area | |
object | Longint | Object ID | |
horizontal | Integer | Receives horizontal offset in points | |
vertical | Integer | Receives 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