Syntax 4 For
the symbol of a series
Description
Obtains the symbol used for data points in a series in a
graph.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
|
1 |
integer dwcontrol.GetSeriesStyle ( string graphcontrol, string seriesname, REF grSymbolType symbolvariable ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to the DataWindow control containing |
|
graphcontrol |
A string whose value is the name of the graph in |
|
seriesname |
A string whose value is the name of the series for |
|
symbolvariable |
In PowerBuilder, the variable of type grSymbolType For a |
Return value
Returns 1 if it succeeds and -1 if an error occurs. In
PowerBuilder, stores in symbolvariable a value of the grSymbolType
enumerated datatype for the symbol used for the specified series. If any
argument’s value is null, GetSeriesStyle returns null.
Examples
This example stores in the variable data_pattern the fill pattern
for the series under the pointer in the graph gr_depts in the DataWindow
control dw_employees. It then sets the fill pattern for the series Total
Salary in the graph gr_dept_data to that pattern:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
string SeriesName integer SeriesNbr, Data_Point grSymbolType symbol grObjectType MouseHit MouseHit = dw_employees.ObjectAtPointer("gr_depts" , & SeriesNbr, Data_Point) IF MouseHit = TypeSeries! THEN SeriesName = & dw_employees.SeriesName("gr_depts" , SeriesNbr) dw_employees.GetSeriesStyle("gr_depts" , & SeriesName, symbol gr_dept_data.SetSeriesStyle("Total Salary", & symbol) END IF |
See also