TextColor – PB Docs 150

TextColor property for PowerScript controls

Controls

Controls and objects that display text

Description

The TextColor property specifies the color to be used for
text in the control.

For the MonthCalendar control, TextColor is the color used
to display text within a month.

Usage

This property does not work in MonthCalendar controls on the
Microsoft Vista operating system.

In a painter

proc.png To set the text color for most controls:

  1. Select the desired color from the TextColor
    drop-down list on the Font tab page for the control.

proc.png To set the text color for graph objects and MonthCalendar
controls:

  1. Select the desired color from the TextColor
    drop-down list on the General page of the Properties view.

proc.png To set the text color for text objects within
graphs:

  1. Select the Text tab page from the graph’s
    Properties view.

  2. Select the desired text object from TextObject
    drop-down list.

  3. Select a color from the TextColor drop-down list.

In scripts

The TextColor property is a long indicating the color to be
used for the background for an object. If you do not know the long
value for the color, choose Design>Custom Colors to determine
the red, green, and blue values and then call the RGB function
to specify the color in a script.

In graphs, the TextColor property is a property of the graph
object as well as of grDistAttr objects within the graph. For example,
the following line sets text color for all the text objects in the
Series Axis:


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