• 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
AU Drawing question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AU Drawing question


  • Subject: AU Drawing question
  • From: Urs Heckmann <email@hidden>
  • Date: Fri, 4 Oct 2002 01:06:45 +0200

Hi,

I use CoreGraphics for drawing in AudioUnit views. The oddity with that is, your coordinate space starts at the bottom left of the port. So you have to convert your control's Y-coordinate to portHeight - Y.

Everything works just fine in AudioUnitHosting.

In Logic, everything drawn with CG is shifted down by the size of the Toolbar. The "usual" (some may say consistent ;-) controls appear where they were supposed to.

I tried this one (in my control's EventHandlerUPP):

WindowRef theWindow = GetControlOwner ( theControl );
HIToolbarRef myTB;
GetWindowToolbar ( theWindow, &myTB );
UInt32 myTBsize = 0;
if ( myTB != 0 ) HIToolbarGetDisplaySize ( myTB, &myTBsize );

... and used myTBsize as an offset. - No effect.

What the hell does Logic do that scrambles my PortBounds? - Why doesn't it affect the other controls?

And more important: What am I missing / can I do?

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: Re: Synchronization problem in 10.2
  • Next by Date: Yet another interface idea
  • Previous by thread: Re: Ann: Serial MIDI Interfaces
  • Next by thread: Yet another interface idea
  • Index(es):
    • Date
    • Thread