Description
Specifies the fill pattern for a data point in a graph.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
integer dwcontrol.SetDataStyle ( string graphcontrol, integer seriesnumber, integer datapointnumber, FillPattern fillvalue )
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 of the series in which you want to set the appearance of a data point. |
datapointnumber |
The number of the data point for which you want to set the appearance. |
fillvalue |
A value of the FillPattern enumerated datatype (in PowerBuilder) specifying the fill pattern for the data point. For a list of values, see FillPattern. |
Return value
Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, SetDataStyle returns null.
Usage
To change the appearance of a series, use SetSeriesStyle. The settings you make for the series are the defaults for all data points in the series.
You can specify the appearance of a data point in the graph before the application draws the graph. To do so, define a user event for pbm_dwngraphcreate and call SetDataStyle in the script for that event. The event pbm_dwngraphcreate is triggered just before a graph is created in a DataWindow object.
Using SetDataStyle with DirectX 3D Graphs
You cannot use a fill pattern for a data point.
See also