THighLightedMemo (Delphi 3)
===========================

The THighLightedMemo component extends the capability of the TMemo by
allowing you to highlight a particular line of text, using any of the
available colours provided by the current palette. There is also the
option to invert the text colour itself in order to avoid combinations
such as black text on a black background. The coloured bar will only
display on lines containing text - blank lines are ignored.

There are three new properties in the THighLightedMemo component that
you need to know about. Their usage in each case is very simple:

HighLightColor:	 The color of the highlighted bar

HighLightedLine: The line number at which the bar is located. If the line
		 number is less than 0 the bar will not display,
		 otherwise the bar displays at the given line number.

InvertTextColor: Set to true to invert the colour of the text relative to
		 the colour of the highlighted bar. This helps in cases
		 where the text colour and background colour are either
		 both dark, or both light. Pastel and grey tones give
		 some odd colour combinations!

Installation
============

I'd strongly suggest placing all of your new components in a directory
of their own. For instance, place the files for the component in a new
directory called 'Custom Components'. Also, create a new package in
which to store all of these new components. I'll show you how this is
done. The default installation places the HighLightedMemo in the palette
labelled 'Samples'. 

1. Select 'Install Component...' from the Component menu.
2. From the 'Install Component' dialog box, click the Browse button, and
   locate the HighLightedMemo.pas file, and click on 'open'.
3. To install the component into a new package, click on the tab labelled
   'Into New Package'. Click on the Browse button adjacent to the
   'Package File Name' edit box, and type in the name for the new
   package.
   Click on the Open button, and then click on Ok followed by Yes and the
   package will be built.
4. If you get completely lost, then refer to the Help file in Delphi.
   This contains full instructions on how to install components and
   packages.

Other Stuff
===========

This component should be pretty robust as it stands, but if you do find
any bugs or other irritating problems then please email me, and I'll fix
them. Alternatively, you can fix them yourself and let me know and I'll
credit you in the next version if I use your code.

There is a new version on the way which should remove all of the flicker. 
The way in which I use this component myself means that the flicker isn't
all that noticable.

The component is Public Domain, so feel free to distribute and use as you
please, although I would appreciate being credited if you use this
component as the basis of something else.

Have fun with Delphi!

Nic

email me at: ndhollinworth@brookes.ac.uk