GetDataTransparency
PowerScript function
Description
Obtains the transparency percentage of a data point in a DirectX 3D
graph (those with 3D rendering).
Applies to
Graph controls in windows and user objects, and graphs in DataWindow
controls
Syntax
|
1 |
controlname.GetDataTransparency ( { graphcontrol, } seriesnumber, datapoint, transparency ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph from which you want data, or the |
|
graphcontrol (DataWindow control only) |
(Optional) A string whose value is the name of the graph |
|
seriesnumber |
The number that identifies the series from which you want |
|
datapoint |
The number of the data point for which you want the |
|
transparency |
Integer value for percent transparency. A value of 0 means |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, GetDataTransparency returns null.
Usage
GetDataTransparency retrieves data from any DirectX 3D graph (those
with 3D rendering).
Examples
These statements obtain the transparency percentage of data point 3
in the series named Costs in the graph gr_computers in the DataWindow
control dw_equipment:
|
1 2 3 4 5 6 7 |
integer SeriesNbr, rtn, transp_value // Get the number of the series. SeriesNbr = dw_equipment.FindSeries( & "gr_computers", "Costs") rtn = dw_equipment.GetDataTransparency( & "gr_computers" , SeriesNbr, 3, transp_value) |
These statements obtain the transparency percentage of data point 2
in the series Costs in the graph gr_computers:
|
1 2 3 4 5 |
integer SeriesNbr, rtn, trans_value SeriesNbr = gr_computers.FindSeries("Costs") rtn = gr_computers.GetDataTransparency( SeriesNbr, & 2, transp_value) |
See also