• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom Control Hit Mask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Custom Control Hit Mask
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Re: Document-based app
  • Next by Date: Re: Document-based app
  • Previous by thread: Re: getting info of an image
  • Next by thread: Re: Custom Control Hit Mask
  • Index(es):
    • Date
    • Thread