On Wed, 31 May 2006 00:12:29, Jo Meder <email@hidden> wrote:
> 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.
Yep. That NULL indicates the entire structure region looks like a
poor design choice here. I wonder if they could change it to mean
"best" tracking area without breaking many apps.
> 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 ?
kHIViewClickableMetaPart is said to be only used for async
window dragging. kHIViewContentMetaPart? Or try real, non-meta
part codes (e.g. kControlButtonPart for buttons).
Mike
_______________________________________________
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