actually, with the rectagular ones i already did this:
Quote:

Getting the panel's position is easy, then you need its x size and y size.
With these values you can compare the mouse position to the panel's position and whether it is within the range of its x and y size.


but i still have some different shapes like circle and trapezoid type...(not as hard as a dragon though, lol :p )