4D Chart v13

CT GET DEPTH

Home

 
4D Chart v13
CT GET DEPTH

CT GET DEPTH 


 

CT GET DEPTH ( area ; object ; horizontal ; vertical ) 
Parameter Type   Description
area  Longint in 4D Chart area
object  Longint in Object ID
horizontal  Integer in Receives horizontal offset in points
vertical  Integer in Receives vertical offset in points

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

 
PROPERTIES 

Product: 4D Chart
Theme: CT Chart
Number: 14545

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT SET DEPTH