• 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
more hints on AU custom graphics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

more hints on AU custom graphics


  • Subject: more hints on AU custom graphics
  • From: Urs Heckmann <email@hidden>
  • Date: Tue, 8 Oct 2002 15:43:01 +0200

Hi,

for those who are into custom graphics and thus into desperation:

In your control handler you should get mouse coordinates from screen, not from window (GetGlobalMouse ( &P );) and subtract window coordinates ( GetWindowBounds( theWindow, kWindowGlobalPortRgn, &globalBounds); ). This works more reliable in Logic and in AudioUnitHosting (when no AIFF is attached). Otherwise mouse coordinates may accidently be global even if you fetch them locally.

For painting the background and sizing the window correctly, I invented a custom control of size 1x1 pixel that draws a CGImage over the whole GUI (and out of its own bounds!), starting at offsetX/offsetY regardless to its own position. I place one of it on top left edge and another one at bottom right. This is a bit of a crude hack, since the same picture is drawn two times (but not anymore afterwards). This finally works better than any modification to mCarbonPane I have tried. - And I have tried a lot, if not all :-) Do I need to say, they must be instantiated first, before every other control so these are drawn on top of the image?!?

I'm working intensively on this subject and if anybody is interested to get the code, I will gladly share. Though I want to tidy it up a bit before making it public.

Again, the ultra-ugly demo on top of MultitapAU example is here: www.u-he.com/urs_au.html (no source this time) [Be careful, this is really nothing beautiful]

Cheers,

;) Urs _______________________________________________
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: Interapplication sync protocol?
  • Next by Date: Re: REANN: Audio IB Palette
  • Previous by thread: Re: Interapplication sync protocol?
  • Next by thread: AU 3d interfaces
  • Index(es):
    • Date
    • Thread