Re: Problems with mouse click location in AUCarbonViewBase
Re: Problems with mouse click location in AUCarbonViewBase
- Subject: Re: Problems with mouse click location in AUCarbonViewBase
- From: Marc Poirier <email@hidden>
- Date: Sun, 20 Jun 2004 10:54:37 -0400 (EDT)
You can look in our cvs repository at dfxgui.cpp in the dfxgui_mac
directory to see some example code of handling these offsets and such,
including taking into account compositing vs. non-compositing windows,
which you should do as well. You'll find links and info at
http://destroyfx.org/
Marc
On Sun, 20 Jun 2004, Cesare Ferrari wrote:
>
I'm writing a wrapper for a plugin GUI implemented with VSTGUI. I'm
>
having trouble with my implementation of HandleEvent in my
>
AUCarbonViewBase derived class.
>
>
The current problem is that i'm not sure of how to convert the window
>
mouse click location (as returned by GetEventParameter for
>
kEventParamWindowMouseLocation) into a location within the pane that my
>
controls are on.
>
>
I'm offsetting by the X and Y that CreateUI provided, but i'm off by
>
the size of the window title.
>
>
I'm guessing i'm supposed to use some method on the mCarbonPane or the
>
mCarbonWindow, any suggestions?
>
>
Many thanks,
>
>
Cesare
_______________________________________________
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.