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 data point – PB Docs 125 – PowerBuilder Library

Syntax 1 For the colors of a data point – PB Docs 125

Syntax 1 For the colors of a data point

Description

Obtains the colors associated with a data point 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 for which you want
the color of a data point, or the name of the DataWindow control
containing the graph.

graphcontrol
(Data
Window control only)

(Optional) When controlname is
a DataWindow control, the name of the graph for which you want the
color of a data point.

seriesnumber

The number of the series in which you
want the color of a data point.

datapointnumber

The number of the data point for which
you want the color.

colortype

A value of the grColorType enumerated
datatype specifying the aspect of the data point for which you want
the color. Values are:

  • Background! – The
    background color

  • Foreground! – Text (fill color)

  • LineColor! – The color of the line

  • Shade! – The shaded area of three-dimensional
    graphics

colorvariable

A long variable in which you want to
store the color.

Return Values

Integer. Returns 1 if it succeeds and
-1 if an error occurs. Stores a color value in colorvariable.
If any argument’s value is null, GetDataStyle returns null.

Examples

This example gets the text (foreground) color used
for data point 6 in the series named Salary in the graph gr_emp_data.
It stores the color value in the variable color_nbr:

This example gets the background color used for data
point 6 in the series entered in the SingleLineEdit sle_series in
the DataWindow graph gr_emp_data.
It stores the color value in the variable color_nbr:

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