SetDataTransparency

Description

Sets the transparency percentage for a data point in a series in a DirectX 3D graph.

Applies to

DataWindow control

Syntax

integer dwcontrol.SetDataTransparency ( string graphcontrol, integer seriesnumber, int datapoint, 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.

seriesnumber

The number that identifies the series in which you want to set the transparency value of a data point.

datapoint

The number of the data point for which you want to set a transparency value.

transparency

Integer value for percent transparency. A value of 0 means that the data point is opaque and a value of 100 means that it is completely transparent.

Returns

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 of a data point in any DirectX 3D graph (those with 3D rendering).

Examples

Example 1

These statements set the transparency percentage to 50% for data point 3 in the series named Costs in the graph gr_1 in the DataWindow control dw_employee:

integer SeriesNbr, ItemNbr, TransNbr

grObjectType clickedtype

// Get the number of the series and datapoint

clickedtype = this.ObjectAtPointer("gr_1", &

		SeriesNbr, ItemNbr)

//The following statement sets Transparency to 50%

TransNbr = 50

		

dw_employee.SetDataTransparency("gr_1", &

		SeriesNbr, ItemNbr, TransNbr)

See also