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

SetTextColor – PB Docs 2022 – PowerBuilder Library

SetTextColor – PB Docs 2022

SetTextColor

PowerScript function

Description

Sets the color of selected text in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

Argument

Description

rtename

The name of the RichTextEdit control in which you want to
set the color of selected text

colornumber

A long specifying the color of the selected text

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs.

Usage

For more information about calculating color values, see RGB.

Examples

This example sets the selected text in RichTextEdit rte_1 to dark
red:

See also

GetTextColor

RGB

SetTextStyle


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