User Tools

Site Tools


fontrtf_code_template.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > Rich Text Template Support - Overview >====== FontRTF code template ====== Previous pageReturn to chapter overviewNext page

NoteBox.jpg

This template (and its associated code templates) has been deprecated, and is now replaced by the RTF Text Control template.

The FontRTF code template is used to set certain font attributes at the current insertion point or to the currently selected text. This template calls the Font method. The font name, size, color, and style can be passed to the method. Any of these parameters may be omitted. If all parameters are omitted the Windows standard font dialog box is called in order to allow a user to set standard font attributes.

Prototype:

Font( [FontName], [FontSize], [FontColor], [FontStyle] )

Example method calls:

! Using variables

oRTF_RTFTextBox.Font( FontName, FontSize, FontColor, FontStyle )

! Specific Font Attributes

oRTF_RTFTextBox.Font( 'Arial', 10, COLOR:Red, FONT:Underline )

! Font Dialog

oRTF_RTFTextBox.Font()

Template Prompts:

Associated RTF control

Select the RTF control from the drop-down list. All controls on the Window are included in the list. This field in required.

Font name or variable (prefixed with !)

Specify the font name to use. A string or variable may be used. To use a variable, precede it with an exclamation point (!).

Font size or variable (prefixed with !)

Specify the font size to use. A string or variable may be used. To use a variable, precede it with an exclamation point (!).

Font color or variable (prefixed with !)

Specify the font color to use. A string or variable may be used. To use a variable, precede it with an exclamation point (!).

Font style or variable (prefixed with !)

Specify the font style to use. A string or variable may be used. To use a variable, precede it with an exclamation point (!).

fontrtf_code_template.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1