Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

marksibly

macrumors newbie
Original poster
May 1, 2009
2
0
Hi,

A quick Carbon question:

How do I track the mouse in a custom HIView control?

So far, I'm handling the 'HitTest' event by setting the event part code param to '1' and returning noErr, after which I get a single 'Track' event.

However, I want to do something more like a scrollbar, that gets continuous mouse movement events and even handles the mouse moving 'outside' of the view.

Any ideas how to achieve this?

Do I have to go into a 'track the mouse' loop in the Track event or something? How do I redraw the control then? Does the event handler recurse?

Bye!
Mark
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.