SetTextColor PowerScript function
Description
Sets the color of selected text in a RichTextEdit control.
Controls
RichTextEdit controls
Syntax
|
1 |
<span>rtename</span>.<span>SetTextColor</span> ( <span>colornumber</span> ) |
|
Argument |
Description |
|---|---|
|
rtename |
The name of the RichTextEdit control |
|
colornumber |
A long specifying the color of the selected |
Return Values
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:
|
1 |
rte_1.<span>SetTextColor</span>(RGB(100, 0, 0)) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest