Re: AU GUI mouse tracking (was AUGUIFramework move to sourceforge.net)
Re: AU GUI mouse tracking (was AUGUIFramework move to sourceforge.net)
- Subject: Re: AU GUI mouse tracking (was AUGUIFramework move to sourceforge.net)
- From: Marc Poirier <email@hidden>
- Date: Tue, 11 Feb 2003 03:15:23 +0100 (CET)
Sorry, I left out one part. I am also setting the ControlPart parameter
for kEventControlHitTest, but the thing with that event is that I don't
receive it until I release the mouse button. So how can setting that
parameter indicate that I want to track the mouse dragging, if I can't
indicate that until the mouse dragging is already over? See, I wasn't
kidding, I'm confused... ;-)
Marc
On Tue, 11 Feb 2003, Marc Poirier wrote:
>
Hi Franck.
>
>
> > (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.
>
>
>
> Ok, if your problem is that your custom control doesn't receive
>
> kEventControlTrack at all, then i can help you out:
>
>
Yes, that is the problem.
>
>
> first when your control receives the kEventControlInitialize make
>
> sure you set the kControlHandlesTracking feature bit. Then during the
>
> kEventControlHitTest, you have to return which part of the control was
>
> hit, and if you specify a part different from kControlNoPart, then
>
> you'll receive kEventControlTrack events...if that's your problem it
>
> should solve it....let me know if i misunderstood something.
>
>
Thanks very much for the tips, but unfortunately it's still not working
>
for me... :( I am getting the kEventControlInitialize and successfully
>
setting the kControlHandlesTracking bit (I know it is successful because
>
I'm checking later with GetControlFeatures), but I still unfortunately get
>
no kEventControlTrack events.
>
>
I am finding this all very confusing. Is it just me, or is this stuff
>
sorely underdocumented? In the Dev Tools install and on
>
developer.apple.com, I find hardly any info about this stuff and zero
>
example code... :( If anyone's feeling really bored and wants to peak at
>
my code and tell me how I'm doing everything wrong, please feel free:
>
>
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tom7misc/vstplugins/dfxgui_mac/
>
>
and the file is dfxgui.cpp
>
>
>
Thanks again,
>
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.