Custom Control Hit Mask
Custom Control Hit Mask
- Subject: Custom Control Hit Mask
- From: Peter Krajcik <email@hidden>
- Date: Thu, 29 Dec 2005 15:57:28 +0100
Hi,
I have a custom control that is composed of three clickable parts. I
need to detect
which part was clicked. The control is drawn at once using one .png
image.
The parts are not simple rectangles.
I had this control under Carbon and I used regions (that I
constructed from bitmap image of control)
to detect clicks in each part of control.
I couldn't find any method I could use to detect if:
- click was on non-transparent pixels of image (this could help)
or
- click was inside bezier path (I could construct bezier path (s)
that would represents parts I need detect)
Thank you.
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden