When you load the RTF functions, you can use the following functions with RTF objects:
L| Function | Syntax | Description |
|---|---|---|
rtfCreate |
Id := rtfCreate(Left, Top, Width, Height, "Source", Scrolling, Prevent¬ |
This function creates an RTF object with the specified This function allows you to set the layer of an RTF Object's position from back to front, relative to other objects on the screen If This function returns the Note: This function does not show the object. If you want to display the object in the Authorware Presentation window, you need to call |
rtfErase |
Result := rtfErase(Id) |
This function erases the RTF object identified by This function returns |
rtfFindText |
Result := rtfFindText(Id, StartPos, "TextOrPhrase") |
This function searches a given range in the RTF object identified by Use this function to search a range of text in an RTF object for some specific text or a phrase. Only the text in the range starting at the position This function returns the position of the text or phrase, where |
rtfGetCurrent¬ |
Result := rtfGetCurrent¬ |
This function returns the position of the currently selected printer in the list of installed printers, with the first printer having a value of Note: the list of installed printers is returned by the |
rtfGetLinkCode |
Result := rtfGetLink¬ |
This function returns the code of the hyperlink identified by |
rtfGetLinkCoor |
Result := rtfGetLinkCoor¬ |
This function returns the coordinates of the hyperlink identified by Coordinates are relative to the Authorware Presentation window. The return value is a property list that looks like this: [#Left:20, #Top:10, #Width:120, #Height:21] Note: If the RTF object is not visible, this function returns an empty property list. |
rtfGetLinkCount |
Result := rtfGetLink¬ |
This function returns the number of hyperlinks found in the RTF object identified by |
rtfGetLinkText |
Result := rtfGetLinkText¬ |
This function returns the text of the hyperlink identified by |
rtfGet¬ |
Result := rtfGet¬ |
This function returns the currently selected printer orientation:
|
rtfGetPageCount |
Result := rtfGetPage¬ |
This function returns the number of pages in the RTF document identified by |
rtfGetPrinter¬ |
Result := rtfGetPrinter¬ |
This function returns a list of all printers installed in Windows. |
rtfGetTextRange |
Result := rtfGetText¬ |
This function returns the text between |
rtfHide |
Result := rtfHide(Id) |
This function hides the RTF object identified by This function returns |
rtfLineFromPos |
Result := rtfLineFrom¬ |
This function returns the whole line where the specified linear character position appears for the RTF object identified by |
rtfPrint |
Result := rtfPrint¬ |
This function prints the RTF document identified by Margin parameters specify the dimensions, in 1/1000 inches, of the page size used when printing your RTF document. If This function returns |
rtfSave |
Result := rtfSave¬ |
This function exports the RTF object identified by FileType can be one of these:
This function returns |
rtfSetCurrent¬ |
Result := rtfSetCurrent¬ |
This function sets the currently selected printer.
Note: The list of installed printers is returned by the This function returns |
rtfSet¬ |
Result := rtfSet¬ |
This function determines if your RTF document prints vertically or horizontally on a page. These are the possible values for Orientation:
This function returns |
rtfShow |
Result := rtfShow(Id) |
This function displays the RTF object identified by This function returns |
rtfUpdate |
Result := rtfUpdate(Id) |
This function updates the RTF object identified by This function returns |
RTF objects include the ability to dynamically change font face, size, and style through scripting. You can use the following tags to change text style:
Aside from setting the font color as shown above, you can also set the font color using hexadecimal color values, such as {font-color=#FF0000}...{/font-color}.