Hi, I want to create a control with a custom shape (not a rectangle) and use it as a button. I could just draw a bitmap with a mask, but it would still be rectangular technically and I wouldn't be able to find if the user has really clicked on the bitmap. What I actually want is to detect if the user has clicked on the control or on the background.

Links to tutorials or any other resources will be greatly appreciated, thanks in advance.