Welcome to the EiffelVision2 Rich text example

This example uses a rich text as an advanced text editor, permitting modification of fonts, paragraph formatting and effects. The class MAIN_WINDOW of this example is generated by EiffelBuild, and if you have a version of EiffelBuild, you may load and manipulate the project contained in the file "build_project.bpr" located in the root directory of this example.

Usage

The example has three tool bars:- character, paragraph and tab, with the character and paragraph toolbars shown by default.

	Character Toolbar:- Contains options for character formatting, including Font family, shape, weight and height. A background and foreground color may be applied to characters, and a number of effects are applicable. The "Offset" option permits an offset in pixels to be set from the baseline.
	Paragraph Toolbar:- Contains left, center, right and justified options. Margins and spacing are also applicable and may be set through the displayed options. Note that for paragraph formatting, it applies to actual lines only so will be applied not only on the selected line displayed, but on any line as distinguished by new line characters.
	Tab Toolbar:- Permits manipulation of the tab positions on an individual basis. Simply drag one of the displayed tab handles to adjust that paticular tab width.

Word wrapping may be enabled or disabled via the 'Options', 'Word Wrapping' menu item. 

Lets now examine a number of the different formatting options applicable:

Character Formatting

Font Family
Multiple font families may be set on a character by character basis, the following are some of those currently available:
System Terminal Fixedsys Roman Script Modern Small Fonts MS Serif WST_Czec WST_Engl WST_Fren WST_Germ WST_Ital WST_Span WST_Swed Courier MS Sans Serif Marlett Arial 

Font Height
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 

Color

Color Color Color Color Color Color Color Color Color Color 

Background Color

Background Color Background Color Background Color Background Color Background Color Background Color Background Color Background Color Background Color Background Color 

Font Effects

Font bold     Font italic     Font bold and italic

Character Effects

Effects striked out     Effects underlined     Effects striked out and underlined

Vertical Offset

This part of the line rests on the baseline, while this part has varying vertical offsets for each word.

Paragraph Formatting

Paragraph formatting is performed on actual lines, being the text between two subsequent new line characters. The arguments for the formatting take displayed lines, and apply to the complete actual lines referenced

Alignment

Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. Left aligned paragraph. 

Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. Center aligned paragraph. 

Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. Right aligned paragraph. 

Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. Justified paragraph. 

Spacing and Margins

Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. Left margin and justified. 

Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. Right margin and justified. 

Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. Top spaced paragraph and justified. 

Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. Bottom spaced paragraph and justified. 

All available fonts

The following fonts are those available on the current machine: