Description
Sets the transparency percentage of a series in a DirectX 3D type graph.
Applies to
DataWindow control
Syntax
integer dwcontrol.SetSeriesTransparency ( string graphcontrol, stringseries, int transparency)
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control containing the graph. |
graphcontrol |
A string whose value is the name of the graph in the DataWindow control. |
series |
The string that identifies the series in which you want to set the transparency value. |
transparency |
Integer value for percentage transparency. A value of 0 means that the series is opaque and a value of 100 means that it is completely transparent. |
Return value
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 a DirectX 3D graph (those with 3D rendering).
Examples
These statements set the transparency percentage to 50% for the series named Costs in the graph gr_1 in the DataWindow control dw_employee:
integer SeriesNbr, ItemNbr, TransNbr string ls_SeriesName grObjectType clickedtype // Get the number of the series and datapoint clickedtype = this.ObjectAtPointer("gr_1", & SeriesNbr, ItemNbr) //Get the name of series ls_SeriesName = dw_employee.SeriesName("gr_1", & SeriesNbr) //The following statement sets Transparency to 50% TransNbr = 50 dw_employee.SetSeriesTransparency("gr_1", & ls_SeriesName, TransNbr)
See also