AU Drawing question
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.