RTF file editor
RTF files, that is, Rich Text Format files, can contain not only traditional text and its format information, but also media information such as images and graphics. Authorware 6 provides good support for this common file format with various media information, and comes with RTF object editor, so users can directly create and edit RTF files in Authorware editing environment. Using RTF file in Authorware program can get richer text display effect, and it can be easily controlled in the program. Since RTF files can be linked to Authorware programs as external objects, when the RTF files in the programs need to be modified, the programs do not need to be modified, only the external RTF files as linked objects need to be modified. Because RTF documents can contain images, and RTF documents can also turn pages with vertical scroll bars in Authorware program windows, large pictures that cannot be displayed completely in a display window can be displayed with the help of RTF documents containing images. It can be seen that using RTF documents has incomparable advantages over just using Authorware's own text tools to create text objects. Using RTF files well in Authorware programs will add a lot of color to multimedia programs.
1 Introduction
Wordpad programs and word processing software attached to Windows operating system provide support for RTF files, which can be used to create RTF files or edit and modify existing files.
Authorware 6 provides a built-in RTF object editor, which is convenient for users to create and edit RTF files. Powerful function and simple operation. Using it, you can easily create RTF documents containing words, pictures, geometric figures, paging information and even Authorware system variables, system functions and hot words, and edit and modify the existing RTF documents. At the same time, the editor also has the ability to edit and modify the MDB database created by Access in Microsoft Office components.
The beginning of 1. RTF object editor
After starting Authorware 6, click the RTF object editor command in the command menu to open the RTF editor included with Authorware 6.
2.RTF object editor interface
Friends who are familiar with word processing software (such as wordpad) will be familiar with it. The interface of RTF object editor consists of title bar, menu bar, toolbar, horizontal ruler, text editing area and bottom status bar. As shown in figure 13.
Figure 13 RTF object editor interface
(1) Title bar: located at the top of the window, from left to right, there are control menu icon (click this icon to get the program control window menu), RTF editor name, edited document name and three window control buttons.
(2) Menu bar: located below the title bar, it includes menu items composed of various operation commands, which are: file menu, edit menu, search menu, view menu, insert menu, format menu and help menu from left to right.
(3) Toolbar: located below the menu bar, it is divided into common toolbars and format toolbars. Common toolbars provide common operation buttons such as opening documents and saving files. The format toolbar generally provides list boxes for changing font, font size, text color, etc., and also provides operation buttons such as text left alignment and text center to modify document format.
Tip: Generally speaking, all buttons in the toolbar can find the corresponding command in the menu, and the result obtained by directly clicking the button is the same as that obtained by selecting the corresponding command in the menu.
(4) Horizontal ruler: below the toolbar, it can be used to view and set the left and right indents of paragraphs.
(5) Document editing area: There is a blinking vertical line in the editing area, called the text insertion point, which is used to indicate the current input position in the document. Users can create new documents or modify existing documents in the editing area.
(6) Status bar: includes two columns. The first column shows the row and column where the current text insertion point is located, and the format is n: m, where n represents the row where the insertion point is located and m represents the column where the insertion point is located. The second column shows the input status, usually the modification status.
2 application
Let's take a look at the usage of RTF object editor. The use of RTF editor is not much different from the use of commonly used word processing software. The main functions of the RTF object editor will be explained below.
Opening and saving of 1 Rtf file
Click the button in the toolbar, or select menu file & gt Open Document to open the dialog box. Select the folder where the document to be opened is located, select the file to be opened in the file list box below, click the "Open" button to open the file, and then you can edit it.
Click the button in the toolbar, or select menu file & gt Save to save the document you are editing.
2. The operation of text block
Selection of text block: When editing a typesetting document with RTF Objects Editor, you need to select the text block to be processed first. Like the commonly used word processing software, the selected object will be displayed in an inverted way, and you can select it with the mouse and keyboard.
After selecting a text block, you can cut, copy and paste the text block.
Formatted character
Like commonly used word processing software, RTF Objects Editor can format the font, size, style, effect and color of the text in a document by the following methods:
First, select the text to be formatted and click the button in the toolbar to get the font setting window, as shown in figure 14.
Figure 14 Font Settings Dialog Box
Select a text style in the list box, such as font, size, font style and color, and then press OK to set the text in the selected area in the document as the setting style.
The buttons related to formatting characters in the toolbar are as follows: Font List: Select one of the options to directly modify the font of the selected text. Font Size List: You can directly change the font size of the selected text by selecting the option value. Text Color List: Select one of the options to directly change the color of the selected text. Background Color List: Select an option to change the background color of the selected text. Bold: The selected or entered text can be displayed in black. Italic: You can italicize the selected text or the entered text. Underline: You can underline the selected text or the entered text. Underline the dotted line: You can add the selected text or the entered text to the dotted line. Superscript: You can make the text entered later become the superscript of the previous text, for example, you can enter an exponential formula such as y3 in the document. Subscript: You can make the text entered later become the subscript of the previous text. For example, you need to enter a 1+a2 in the document.
Formatted paragraph
Formatting a paragraph means setting the line width, spacing and indentation of the paragraph.
First, place the insertion point cursor on the paragraph to be formatted and select Format >; Paragraph command, set the window. As shown in figure 15.
Figure 15 Paragraph Format Setting Dialog Box
The items in the window are described as follows: The items in indentation are used to set the paragraph indentation. You can enter a number directly in the input box, or click the up and down buttons on the right to change the value.
Q First Line is used to set the indentation of the first line of a paragraph.
Q Left is used to set the left indent of the paragraph.
Q Right is used to set the right indent of a paragraph.
Items in Alignment are used to set the alignment of a line of text in a paragraph.
Q Select Left to align the text to the left.
Q Select Align Right to align the text to the right.
Q Select Center to center the text.
Items in spaces are used to set the vertical spacing between paragraphs. Input method is the same as indentation.
Q spacing before is used to set the vertical spacing between the current paragraph and the previous paragraph.
The space after q is used to set the vertical distance between this paragraph and the next paragraph.
Q line spacing is used to set the line spacing of this paragraph.
You can also set the indentation of a paragraph by using the indentation mark in the ruler bar. Indent marks reflect the indentation of the paragraph where the insertion point is located. Place the insertion point cursor in the paragraph, and drag the indentation mark with the mouse to reset the indentation position of the paragraph. As shown in figure 16.
Figure 16 indentation setting
The buttons related to setting paragraphs in the formatting toolbar are as follows: Align Left: When the button is pressed, the paragraph is aligned to the left; Click this button again to cancel the left alignment of the paragraph. Center: when the button is pressed, the text will be arranged in the center; Click this button again to cancel paragraph centering. Right Alignment: When the button is pressed, the text will be aligned to the right; Click this button again to cancel the right alignment of the paragraph. Reduce Indentation: You can reduce the left indent of a paragraph. Increase Indentation: You can increase the left indent of a paragraph.
5. The establishment of bullets
In order to make documents easy to read and understand, bullets are often used in documents, and RTF object editor enables users to use bullets in documents conveniently.
Move the cursor of the insertion point to the paragraph where bullets need to be added, and click the Add Bullets button in the format toolbar to open the selection menu, where the styles of bullets are given. Click the desired style to add bullets to the paragraph.