SetRichTextColor method (DataWindows)
Description
Sets the color
to use while editing columns with the RichText edit style.
Controls
DataWindow control
Syntax
|
1 |
Integer <span>dwcontrol</span>.<span>SetRichTextColor</span> ( long <span>color</span> ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to the DataWindow control |
|
color |
A long value specifying the color that |
Return Values
Returns 0 if it succeeds and –1 if an error occurs.
If the argument’s value is null, SetRichTextColor returns
null.
-
0 Success
-
-1 No RichText column is being edited
Usage
If the color for columns with the RichText edit style is white,
background transparency and gradient and text transparency will
not work properly.
You can call this method from a button in a custom toolbar
that you use to set display characteristics of columns with the
RichText edit style.
Examples
This example sets green as the current color to use
for editing columns that have a RichText edit style:
|
1 |
Integer l_rtn |
|
1 |
Long l_color |
|
1 |
l_color = RGB(0, 255, 0) |
|
1 |
l_rtn = dw_1.SetRichTextColor(l_color) |