SetRichTextStyle method (DataWindows)
Description
Sets the style
of the font to use while editing columns with the RichText edit
style.
Controls
DataWindow control
Syntax
|
1 |
Integer <span>dwcontrol</span>.<span>SetRichTextStyle</span> ( boolean <span>bold</span>, boolean <span>underline</span>, boolean <span>italic</span>, boolean <span>strikeout</span>, ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to the DataWindow control |
|
bold |
A boolean for the bold style |
|
underline |
A boolean for the underlined style |
|
italic |
A boolean for the italic style |
|
strikeout |
A boolean for the strikeout style |
Return Values
Returns 0 if it succeeds and –1 if an error occurs.
If the argument’s value is null, SetRichTextStyle returns
null.
-
0 Success
-
-1 No RichText column is being edited
Usage
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 an underlined, bolded font as the
current font for editing columns with a RichText edit style:
|
1 |
Integer li_rtn |
|
1 |
li_rtn = dw_1.SetRichTextStyle(true, false, false, & |
|
1 |
    false) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest