| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 11/25/03 6:38 AM, Jerry didst favor us with:
Hi,I didn't see any other replies, but I don't know of any other way to handle
I have a few custom controls which I want to add scroll wheel support
to. It seems that controls don't receive Carbon scroll wheel events, so
I have to add a handler to the Window or Application and then call
FindControlUnderMouse. Because these custom control classes are
independent, at the moment I end up installing one handler per class.
Of course, I'll be able to improve on this by installing one handler
and dispatching to the classes, but other controls such as the data
browser have scroll wheel support and must be installing their own
handlers. This seems inefficient, and I'm wondering if there's a better
way. Is there some way to get controls to receive scroll wheel events,
perhaps?
them except that I wouldn't go by the mouse location. Instead, I'd go by the
current keyboard focus. For example, if you had two lists, the currently
focused list should respond to the scroll wheel, not the one with the mouse
over it.
Larry
| References: | |
| >Re: Scroll wheel events (From: Laurence Harris <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.