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

GetRichTextFaceName – PB Docs 2019 – PowerBuilder Library

GetRichTextFaceName – PB Docs 2019

GetRichTextFaceName

method (DataWindows)

Description

Gets the current typeface setting for editing columns with the
RichText edit style.

Applies to

DataWindow control

Syntax

Argument

Description

dwcontrol

A reference to the DataWindow control

typeface

A string used to define the type

Return value

Returns an integer to indicate whether the column that you selected
has the RichText edit style and whether the content has one or more fonts
applied.

0 — Success

-1 — No RichText column is being edited

-2 — The selected text is a mix of fonts

Usage

You can call this method from a button in a custom toolbar that you
use to obtain current font settings for columns with the RichText edit
style.

Examples

This example obtains the typeface of the font to be used for editing
columns with a RichText edit style:

If Tahoma font is selected when the above script is called,
ls_string is Tahoma and the method returns 0. If a mix of fonts is
selected, ls_string is blank and the method returns -2.

See also

GetRichTextAlign

GetRichTextColor

GetRichTextSize

GetRichTextStyle

SetRichTextFaceName


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