Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 1 For the colors of a series – PB Docs 125 – PowerBuilder Library

Syntax 1 For the colors of a series – PB Docs 125

Syntax 1 For the colors of a series

Description

Obtains the colors associated with a series in a graph.

Controls

Graph controls in windows and user objects, and graphs in
DataWindow controls

Syntax

Argument

Description

controlname

The name of the graph in which you want
to obtain the color of a series, or the name of the DataWindow control
containing the graph.

graphcontrol (DataWindow control
only)

(Optional) A string whose value is the
name of the graph in the DataWindow control for which you want the
color of a series.

seriesname

A string whose value is the name of the
series for which you want the color.

colortype

A value of the grColorType enumerated
datatype specifying the aspect of the series for which you want
the color:

  • Foreground! – Text
    color

  • Background! – Background color

  • LineColor! – Line color

  • Shade! – Shade (for graphs that are 3-dimensional
    or have solid data markers)

colorvariable

A long variable in which you want to
store the color’s RGB value.

Return Values

Integer. Returns 1 if it succeeds and
-1 if an error occurs. Stores in colorvariable the
RGB value of the specified series and item. If any argument’s value
is null, GetSeriesStyle returns null.

Examples

These statements store in the variable color_nbr
the text (foreground) color used for a series in the graph gr_emp_data.
The series name is the text in the SingleLineEdit sle_series:

These statements store in the variable color_nbr the
background color used for the series PCs in the graph gr_computers in
the DataWindow control dw_equipment:

These statements store the color for the series under
the mouse pointer in the graph gr_product_data in line_color:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x