Area with irregular shapes

I’ve a map with Nations and regions, I would like to detect when a click (or mouse up) is inside a region to show then specific data from that region.
The regions are irregular shape. How can I detect this?, is there an object or an invisible button with definable shape I might put over?

Have a second identical sized shape ColourMap where each country is coloured in with its own colour.

A mouse click on the real Map gives you the coordinates.

Check the colour at the coordinates. This gives you the country.

Thanks I will try it

Sorry but, how can I get the color at x,y of the canvas?

Read up on RGBsurface and Pixel

http://documentation.xojo.com/api/graphics/rgbsurface.html#rgbsurface-pixel