SetDataTransparency PowerScript function
Description
Sets the tranparency percentage of a data point in a series
in a DirectX 3D graph (those with 3D rendering).
Controls
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
1 |
<span>controlname</span>.<span>SetDataTransparency</span> ( { <span>graphcontrol</span>, } <span>seriesnumber</span>, <span>datapoint</span>, <span>transparency</span> ) |
Argument |
Description |
---|---|
controlname |
The name of the graph in which you want |
graphcontrol (DataWindow control |
(Optional) A string whose value is the |
seriesnumber |
The number that identifies the series |
datapoint |
The number of the data point for which |
transparency |
Integer value for percent transparency. |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If any argument’s value is null, SetDataTransparency returns null.
Usage
SetDataTransparency sets the transparency
value for a data point in any DirectX 3D graph (those with 3D rendering).
Examples
These statements set the transparency percentage
to 50% for the clicked data in the graph gr_1 in
the DataWindow control dw_employee:
1 |
integer SeriesNbr, ItemNbr, TransNbr |
1 |
grObjectType clickedtype |
1 |
// Get the number of the series and datapoint |
1 |
clickedtype = this.ObjectAtPointer("gr_1", & |
1 |
SeriesNbr, ItemNbr) |
1 |
//The following statement sets Transparency to 50% |
1 |
TransNbr = 50 |
1 |
<span> </span> |
1 |
dw_employee.<span>SetDataTransparency</span>("gr_1", & |
1 |
SeriesNbr , ItemNbr, TransNbr) |
These statements set the transparency percentage
to 50% for the clicked data point in the graph gr_employee.
1 |
integer SeriesNbr, ItemNbr, TransNbr |
1 |
grObjectType clickedtype |
1 |
1 |
clickedtype = gr_employee.ObjectAtPointer( & |
1 |
SeriesNbr, ItemNbr) |
1 |
1 |
TransNbr = 50 |
1 |
1 |
gr_employee.<span>SetDataTransparency</span>(SeriesNbr, & |
1 |
ItemNbr, TransNbr) |