• 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: Another Logic question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Logic question


  • Subject: Re: Another Logic question
  • From: Andy <email@hidden>
  • Date: Thu, 5 Dec 2002 22:22:50 +0000

My drawing if fine, but my mouse tracking is offset by the difference between the Mixer window and my Pan window. Obviously, I need to subtract that difference from the mouse coordinates, but how do I get the Mixer window port handle in order to call GetPortBounds on it and make my subtraction?

I'm not sure that's really what you want to do ? It seems odd that you need to subtract the difference between two windows! (You should never really need to do that). It sounds more like you are receiving global mouse coords when you actually want local coords.

One thing with Logic is that the AU window port is not always the current port when mouse tracking. It depends on how you are receiving or generating your mouse events, but you may need to call SetPort() on the window to make sure it is current. Also your tracking code should always be aware of the base coordinate system. This can get tricky if you're mixing core-graphics with carbon/quickdraw because you have the added complexity of inverted origins, CG origin is at bottom-left, QD is top-right.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Another Logic question
      • From: Howard Moon <email@hidden>
References: 
 >Another Logic question (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: Property plugins
  • Next by Date: Re: Another Logic question
  • Previous by thread: Re: Another Logic question
  • Next by thread: Re: Another Logic question
  • Index(es):
    • Date
    • Thread