Re: [ANN] AUGUIFramework move to sourceforge.net
Re: [ANN] AUGUIFramework move to sourceforge.net
- Subject: Re: [ANN] AUGUIFramework move to sourceforge.net
- From: Marc Poirier <email@hidden>
- Date: Mon, 10 Feb 2003 01:45:28 +0100 (CET)
>
> (1) If anyway has suggestions on how to get proper control event
>
> mouse tracking happening with custom controls, I would love to know.
>
> In other words, details about how to get those pesky
>
> kEventControlTrack events for each mouse twitch so that I don't need
>
> to enter into a modal loop upon kEventControlClick (and thus take over
>
> the thread) in order to track the mouse location while a control is
>
> being moused.
>
>
Hi Marc,
>
>
I havn't had any time for that, but shouldn't it work easily like this:
>
>
Set Control in "trackmode == true" on mouse down, return from
>
ControlHandler
>
Track Mouse location via timer while "trackmode == true" (during
>
"idle()" calls)
>
Set trackmode = false on mouse up
>
>
Or doesn't a CarbonControl receive a MouseUp after a MouseDown if the
>
cursor left the Control's area?
Thanks for the idea, Urs, but ooooooooo I would much rather avoid such a
kludge. :-/ Aside from other issues, I'm sure that I would not get good
mouse tracking granularity polling mouse position from an idle timer. If
it really needs to come down to doing a hack like that, I would rather
install an event listener on the embedding window's event target for
kEventMouseDragged. But the thing is that neither of those approaches
should be necessary, there *should* be a way to actually get
kEventControlTrack events, but so far I haven't managed to do it
successfully...
Thanks,
Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.