• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with mouse click location in AUCarbonViewBase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with mouse click location in AUCarbonViewBase


  • Subject: Re: Problems with mouse click location in AUCarbonViewBase
  • From: <email@hidden>
  • Date: Sun, 20 Jun 2004 10:17:07 +0000

> From: Cesare Ferrari <email@hidden>
> Date: 2004/06/20 sv AM 07:47:52 GMT
> To: CoreAudio API <email@hidden>
> Dmne: Problems with mouse click location in AUCarbonViewBase
>
> 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?

I am also trying to port my VST to AU. I am a Mac newbie so
I am not to be trusted in these matters really ;-) But I ended up
using the difference between

GetWindowBounds(mCarbonWindow, kWindowContentRgn, &r)
and
GetWindowBounds(mCarbonWindow, kWindowStructureRgn, &r).

That solved the click-problem
but I am stuck with another offset problem. Some hosts
like to use the upper part of the window themselves and
send you an offset into the window which you should treat
as the origin for your own stuff. How can I tell vstgui
to work with such an offset?

/Olof W


>
> 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.
_______________________________________________
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.


  • Prev by Date: Problems with mouse click location in AUCarbonViewBase
  • Next by Date: Re: Problems with mouse click location in AUCarbonViewBase
  • Previous by thread: Re: Problems with mouse click location in AUCarbonViewBase
  • Next by thread: Carbon NavServices dialogs in Cocoa apps
  • Index(es):
    • Date
    • Thread