
 TMaxInstance Component for Delphi 2 ReadMe
===========================================

 Note:  This component is a freeware I wrote
 mainly to learn to use Win32 Semaphores and
 is provided as is with no warranties either
 express or implied.  If you find a bug or
 have some interesting comments that don't
 deprecate my lineage you're welcome to
 email me. :)  I'm at mkelly99@gate.net

 If you give this component to someone else
 please give the zip file as packaged so I
 don't end up debugging code I didn't write. :)

 For more particulars see the comments in the
 source file MaxInstance.pas.

 TMaxInstance Delphi 2 Non-visual Component

 author: Michael Kelly July 27, 1999
 email:  mkelly99@gate.net
===========================================

What it is:

 TMaxInstance is a Win32 Non-visual Component that makes it trivial 
 to control the number of instances of your Delphi Application that 
 may run concurrently.  I developed it in Delphi 2 but since the
 source is provided and it uses Win32 API calls it may compile in
 other Delphi 32 bit versions.  However, I haven't tried it with
 anything other than Delphi 2 at present.

How you use it:

 Drop the component on the main form when creating your Delphi
 win32 program.  The maximum number of application instances and
 other particulars can be changed using the Object Inspector.
 In the OnCreate handler for your main form call the GetSem
 method.  See the file TryMax.pas for a minimal example.  Once
 the number of instances of your program that are open equal
 the setting in the property MaxInstances, new instances opened
 will just come up and disappear.  There are a couple of event
 handlers and an AutoKill property that you can set to alter
 this default behavior.  See the source file MaxInstance.pas
 for more detailed description of the properties.

How you install it:

 Create an empty folder in your Delphi hierarchy and unzip the
 package there.  Follow the instructions in Delphi help for
 installing a component from source code.  I recommend backing
 up your component library before compiling just as a precaution.
 As is, the register procedure installs the component on a page
 called "Freeware" in the component palette.

== End of File ==
