TMapImage component  Version 1.00 for Delphi 2.0

What's this ?
 A Delphi-component named TMapImage.
 
 Set different clickable regions on the image (maybe the counties of a state)
 and get the map on every mouse-event (see the sample).
 load and save the map; create your own with the sample map-editor.

(C) 1997, by Markus Stephany. All rights reserved.
You can use this component free of charge in your public domain, freeware and 
shareware programs.
You must not use this component in any commercial applications without my permission.

And you cannot make me responsable for anything that goes wrong with this...

You may give copies to others by copying the original, unmodified zip file for free.

If there are any questions, comments or suggestions, or if you find any bugs, please send a
mail in English or even better in German (cause my English doesn't take me everywhere) to :

MirBir.St@T-Online.de 

===========
DESCRIPTION
===========

Usage

TMapImage is a child of TImage.
The added properties/functions are :

- map			: tstrings
	the description strings of the TMI's regions. the syntax for each string:
	first character : 'r' for a rectangular region
			  'c' for a round region
                          'p' for a polygonal region
        the further contents: ',xxx' for each number
			      'c' : 3 items (x,y,radius) (e.g. 'c,0,0,100')	
			      'r' : 4 items (left,top,right,bottom) (eg 'r,0,0,80,120')
                              'p' : 2..500 items (two for each border-point (x,y))
                                    (eg. 'p,50,0,0,100,100,100' for a triangle)
       if there are 2 or more regions on one point, the region described in the map with
       the higher index is used.	
	
- getmap (x,y:integer)	: integer
	on which region is the coordinate(x,y) ?
        result : -1 for no region
                 xx for the index[xx] of the map-tstrings    

- MapCursor,NoMapCursor : tcursor
	the cursor that will be shown if the mouse is / is not on a region
        (by default : crHand (included index : 39) / crdefault

- createregion (x:integer)	: hrgn
	this function will create a windows-region from map[x] and give back the handle.
	you have to delete the region after the usage with deleteobject (result) by yourself!
 	overlapping regions will be handled correctly.

-- the property stretch can not be used.

Viel Spa beim Programmieren wnscht

Markus.

