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

TextFrameInsertFixed – PB Docs 2022 – PowerBuilder Library

TextFrameInsertFixed – PB Docs 2022

TextFrameInsertFixed

PowerScript function

Description

Inserts a new text frame at a fixed geometrical position. The text
flows around the text frame.

Applies to

RichTextEdit control

Syntax

Argument

Description

pageNo

Specifies the number of the page where the text frame is
inserted, beginning with number 1.
posX The text frame’s horizontal position in twips relative to
the left border of the paragraph. This value is used if the
Alignment parameter has been set to 0. Twip is a fabricated word
meaning twentieth of a point (pt).
posY The text frame’s vertical position in twips relative to the
top border of the paragraph. Twip is a fabricated word meaning
twentieth of a point (pt). The value cannot be set to a value
smaller than 0.
width The width of the text frame in twips. If this parameter is
set to zero, a built-in mouse interface is started which enables
the end-user to define the size of the text frame through a
rectangle, drawn with the mouse. Twip is a fabricated word meaning
twentieth of a point (pt).
height The height of the text frame in twips. If this parameter is
set to zero, a built-in mouse interface is started which enables
the end-user to define the size of the text frame through a
rectangle, drawn with the mouse. Twip is a fabricated word meaning
twentieth of a point (pt).
textFlow

Specifies how text flows around the text frame. Values
are:

  • 2 — The text stops at the top and continues at the
    bottom of the text frame.

  • 3 — The text flows around the text frame. Empty areas
    at the left and right side are filled.

distanceL Specifies the left distances, in twips, between the text
frame and the document’s text. Twip is a fabricated word meaning
twentieth of a point (pt).
distanceT Specifies the top distances, in twips, between the text
frame and the document’s text. Twip is a fabricated word meaning
twentieth of a point (pt).
distanceR Specifies the right distances, in twips, between the text
frame and the document’s text. Twip is a fabricated word meaning
twentieth of a point (pt).
distanceB Specifies the bottom distances, in twips, between the text
frame and the document’s text. Twip is a fabricated word meaning
twentieth of a point (pt).

Return value

Integer.

Returns the unique ID that identifies the newly-inserted text frame.
Returns 0 if it fails. Returns null if any argument is null.

Examples

The following example inserts a text frame to the first page.


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