Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the "best" area for HIView tracking areas



Hi,

I was wondering how to get the "main" area of a control for use with HIView tracking areas. HIViewNewTrackingArea() lets you pass NULL for the inShape param, which does actually cause the entire structure region to be used which is fair enough, but this doesn't give a particularly desirable area for some controls. For example, if you do it on pushbutton then when you move the mouse over the button from below you get the mouse entered event when the mouse hits what looks like somewhere a little outside the edge of the shadow area under the button. It seems to me that getting the event when the mouse actually moves over the button itself would be a bit better.

I found HIViewCopyShape() but am not sure if any of the part constants would give me what I'm looking for. Perhaps I'm just better off using the entire structure region, given the potential variety in the shapes of different regions of a control ?

Regards,

Jo

--
Jo Meder
Planetside Software
email@hidden

Terragen for Macintosh
Photorealistic landscapes on your Mac
<http://www.planetside.co.uk/terragen/mac/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.