<<

Contents

Search

>>

 

Word Processor

 

Attention: Word Processor fields are not supported in Html programs. They are treated as multiline edit fields.

 

With the word processor the file name of the last read or written file is entered into the Field Variable (see Field Attributes).

 

Four different word processor types are available.

 

1. Editor

2. Styled Editor

3. RTF editor

4. HTML editor

 

With the editor only text can be entered, with the other types the text can be formatted (font size, font type, pictures, etc.).

 

The type of the word processor can either be specified directly or it the variable EBUS_EDITOR_TYPE specifies the type at program runtime.

 

The preset font and font height at the start of the word processor are specified by the variables EBUS_EDITOR_FONTNAME$ and EBUS_EDITOR_FONTHEIGHT.

 

Above the word processor an icon bar is displayed, which can also be suppressed.

 

By pushing the right mouse button a popup menu appears in the word processor, by which hyperlinks can be inserted and the function Find/Replace can be called.

 

The function Find/Replace can also be called by Ctrl/F

 

With Ctrl/S the content of the word processor is automatically saved in the respective file.

 

There is a flag in the word processor, which tells whether the content of the word processor has been changed. This value of the flag can be called by the function EDITOR_HAS_CHANGED and can be reset by EDITOR_RESET_CHANGED.

 

The Macro after of the word processor will be executed if the function New Document (Alt/1), Open (Alt/2) or Save (Alt/3 or Ctrl/S) is to be executed. The Macro after is started before the respective function is executed. In the macro the variable EBUS_DATA controls whether the respective function shall be executed. Prior to the start of the macro EBUS_DATA = 1 (New Document), = 2 (Open) or = 3 (Save) is set. If EBUS_DATA has the value 0 after macro execution, the respective function New Document , Open or Save will not be executed.

 

With Save (Alt/3 or Ctrl/S) the Macro after of the word processor ist called twice. First with EBUS_DATA = 3 (Save). If in this macro EBUS_DATA is not  set to 0, saving of the text will be executed. Thereto the file dialog is opened to select a file name. If the file dialog is aborted, the text will not be saved and the Macro after of the word processor is called with EBUS_DATA = 4 and EBUS_DATA$ = "0". If the file dialog is not aborted, the text will be saved and the Macro after of the word processor is called with EBUS_DATA = 4 and EBUS_DATA$ = "1".

 

Note the following restrictions:

 

Insert Table only applies to the HTML editor. At the moment the HTML editor supports the HTML version 3.2. The tags of newer versions are therefore displayed wrong or not at all. Due to a fault in Java the Background Color is not supported with the RTF editor and the HTML editor at present.

 

When a picture is inserted in the HTML editor, the absolute path of the picture is entered. By pushing the right mouse button over the picture and selecting the function Change Image a relative path can be entered.

 

With the RTF editor the paragraph attributes (left-aligned, right-aligned, centered, justification) cannot be applied.

 

Due to a fault in Java Justification is not implemented correctly and therefore identical with centered.

 

The following functions apply to the word processor:

 

The functions EDITOR_GET_TEXT$ and EDITOR_GET_STYLEDTEXT$ deliver the current text of the word processor with and without formatting attributes.

 

EDITOR_LOAD_FILE loads the content of a file into the word processor.

 

EDITOR_LOAD_STRING loads styled text from a string into the word processor.

 

The functions EDITOR_SET_CURSOR and EDITOR_GET_CURSOR set and get the current cursor position in the word processor.

 

GET_STYLEDTEXT_FROM_FILE$ reads styled text from a file.

 

With LPRINT_STYLEDTEXT styled texts can be printed, e.g. in the report.