Text fields
A text field is certain text that you hope to associate it with
one of the types: standard, externallink, or internallink. If the type
is externalink, it is possible to link the text to an external
document or URL. If the type is internallink, it is possible to lnk
the text to a location within the current document.
The following functions are provided for text fields:
-
TextFieldInsert — Inserts a
text field into the current position in a RichTextEdit
control. -
TextFieldSetText — Sets the
text of the text field in a RichTextEdit control. -
TextFieldSetTypeAndData —
Sets the type and type data of the text field in a RichTextEdit
control. -
TextFieldGetType — Gets the
type of the specified text field in a RichTextEdit control. -
TextFieldGetText — Gets the
text of the specified text field in a RichTextEdit control. -
TextFieldGetTypeData — Gets
the type data of the specified text field in a RichTextEdit
control.
In the following example, a text field (with a text value
“Test”) is inserted, and its type is set to externallink, and the link
goes to https://www.appeon.com:
|
1 2 3 4 5 |
integer li_rtn,li_id li_id = rte_1.TextFieldInsert("Test") li_rtn = rte_1.TextFieldSetTypeAndData (li_id,"externallink","https://www.appeon.com/") MessageBox("TextFieldSetTypeAndData",string(li_rtn)) |