********************************************************************************
* Hpattl! Delphi Component                                           	       *
********************************************************************************

Unit alias:       RichControl
Name:             RichEdit Text Control
Version:          1.22
Requires:         Delphi 3.0/4.0, Win32, Chicago, Memphis or above
                  RichEdit98, Rich32.dll, HueAPI2 (from Neveprise),
                  RichControl.res
                  RichEdit98 can be downloaded via:
                  Delphi Super Page: http://sunsite.icm.edu.pl/delphi/
                  or
                  http://ftp.optiva.ee/delphi/ftp/d30free/
Last revised:     April 25th, 1999
Notes:            FreeWare!
Updates:          www.neveprise-inc.de
Contact:          mail@neveprise-inc.de or support@neveprise-inc.de

Note:             !!! Please call procedure CheckStat from the RichEdit98
                  Component by its OnSelectionChange notify event, so that
                  the buttons etc. are updated correctly in RichControl!!!
********************************************************************************
* RichControl Copyright 1999 by Neveprise Inc., SD                            *
********************************************************************************

1. Description
2. How to install
3. Working with TRichControl
4. Disclaimer






1. Description
================================================================================

TRichControl a visible component, designed to easyly implement a formatting in-
terface for richtext controls. Instead of coding everytime such a thing when
creating an application that uses richtext, you simply drag this component onto
the form. It sets font's/paragraph's name, size, style, alignment, numbering and
color and additionally provides customizable presets.

2. How to install
================================================================================

Shall be very simple:

First, copy the files "RichControl.pas", "RichControl.dcr" and "RichControl.res"
into a special folder, e.g. "C:\Data\Delphi Progs\Components".
If you haven't already, start your Delphi IDE and select "Components|Install
components". In the dialog displayed, select wether "Into existing package"
(recommended) or "Into new package" (if so, type in a new package filename and
-folder). Click the upper button labeled "Browse" and select the RichControl
file in the location you copied it to.
When done, click "Ok" and let Delphi compile the whole package in the next
dialog. Close this window and TRichControl should have been installed.

***Note***: of course, TRichEdit98 must have been installed bevore! This is an
extended TRichEdit with full OLE capabilities and more. Where to get it, look
at the top of dis readme. You will also need the HueAPI2 unit, available from
the Neveprise website.


3. Working with TRichControl
================================================================================

First, let me show new properties introduced by TMetricReminder:

- TStringList	DefaultFormattings:	a list containing font's presets
- TRichEdit98	RichEdit:		defines which RichControl to handle

- procedure	CheckStats:		notifies RichControl that the selection
					has changed (for update)

All these properties can be set visually through Delphi's Object Inspector.

When dragged the new component onto a form, please commence setting those props:

Just specify the RichEdit control in the RichEdit property. Then select the
RichEdit98 control, select the Events page in the Object Inspector and double
click beside "OnSelectionChange" to create this event.
In the code editor, just type the name of the RichControl and add the procedure
"CheckStats", eg.: RichControl.CheckStats;
That's all!


Additional: Presets

The DefaultFormattings property offers to propose several presets for formatting
a selection. This includes font's name, size, style, color, and paragraph's align.
The end-user of your app can select from these values from the very first combobox.
You can propose different presets this way: when editing the DefaultFormattings
property, you will see lines build up like this:

Standard=Times New Roman|8|NoBold|NoItalic|NoUnderline|NoStrikeout|52000

The first parameter is the name of the preset, as shown in the combobox. Then the
formatting parameters follow divided by the pipe "|":

a) font's name		e) font style: underline		
b) font's size		f) font style: strikeout
c) font style: bold	g) font's colour as an integer value
d) font style: italic

How to enter font's name, size and colour should be obvious, to set the styles, just
enter the e.g. Bold (bold=true) or anything different (NoBold=false) to disable that
parameter. If you do not want to set the parameter at all, set -1. This causes Rich-
Control to take previous params and only set the used ones, e.g.:

Comment=-1|-1|NoBold|Italic|NoUnderline|NoStrikeout|-1

just sets the font to italic, but does not set any other property, so that current
RichEdit's styles are taken.

4. Disclaimer
================================================================================

This component is freeware, meaning you can freely use and redistribute this code.
If you do so, please do only copy the original .zip file. If you perform any
modifications to code or documentation, please make a clear note into dis document!

Cos TRichControl is freeware, the author

a) claims that dis ware is "as is" and that there is NO guarantee that it will
work correctly, as it was intended to work.

b) is NOT responsible for ANY direct or indirect damages dis software may cause.

Notice that Neveprise takes great care with it's products, so any bad malfunction
is very unlikely.

							Blazko, April 25th, 1999

-EOF-