SetSeriesTransparency PowerScript function
Description
Sets the tranparency percentage of 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>SetSeriesTransparency</span> ( { <span>graphcontrol</span>, } <span>series</span>, <span><br>transparency</span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph in which you want |
|
graphcontrol (DataWindow control |
(Optional) A string whose value is the |
|
series |
The string that identifies the series |
|
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, SetSeriesTransparency returns null.
Usage
SetSeriesTransparency sets the transparency
value for a series in any DirectX 3D graph (those with 3D rendering).
Examples
These statements set the transparency percentage
to 50% for the clicked series in the graph gr_1 in
the DataWindow control dw_employee:
|
1 |
integer SeriesNbr, ItemNbr, TransNbr |
|
1 |
string ls_SeriesName |
|
1 |
grObjectType clickedtype |
|
1 |
|
1 |
// Get the number of the series and datapoint |
|
1 |
clickedtype = this.ObjectAtPointer("gr_1", & |
|
1 |
SeriesNbr, ItemNbr) |
|
1 |
|
1 |
//Get the name of series |
|
1 |
ls_SeriesName = dw_employee.SeriesName("gr_1", & |
|
1 |
SeriesNbr) |
|
1 |
|
1 |
//The following statement sets Transparency to 50% |
|
1 |
TransNbr = 50 |
|
1 |
|
1 |
dw_employee.<span>SetSeriesTransparency</span>("gr_1", & |
|
1 |
ls_SeriesName, TransNbr) |
These statements set the transparency to 50% for
the clicked series in the graph gr_employee.
|
1 |
integer SeriesNbr, ItemNbr, TransNbr |
|
1 |
string ls_SeriesName |
|
1 |
grObjectType clickedtype |
|
1 |
|
1 |
clickedtype = gr_employee.ObjectAtPointer( & |
|
1 |
SeriesNbr, ItemNbr) |
|
1 |
|
1 |
ls_SeriesName = gr_employee.SeriesName(SeriesNbr) |
|
1 |
|
1 |
TransNbr = 50 |
|
1 |
|
1 |
gr_employee.<span>SetSeriesTransparency</span>( & |
|
1 |
ls_SeriesName, TransNbr) |