Custom Control Managing Multiple Parameters
Custom Control Managing Multiple Parameters
- Subject: Custom Control Managing Multiple Parameters
- From: AJ <email@hidden>
- Date: Tue, 23 Aug 2005 10:35:48 -0700
All,
I have scoured documentation and searched past mailing lists and have
determined it's time to ask for some assistance.
I am developing a custom control for displaying the state of 2 AU
parameters. In short, this is an XY control watching an x and y
coordinate value. Since it seems that the AUCarbonViewControl class is
focused upon controls that can be encapsulated with a single parameter
and be handled via SetControl32BitValue(), I have foregone that route.
Instead, in my kEventHIObjectInitialize handler I am creating an
AUParameterListener and calling AUListenerAddParameter for the
parameters I am interested in. In my AUParameterListenerProc I am
checking the compositing attribute of my HIView and either calling
HIViewSetNeedsDisplay ( compositing on ) or InvalWindowRect (
compositing off ).
My testing scenario is within Live 4.1.4. I have my custom AU view
open, but I am using Live's UI to change one of the parameters I am
watching. The AUParameterListener is getting called and due to my
request to draw the control as described above, I do get a
kEventControlDraw event delivered to my custom control's draw event handler.
All sounds good correct... well when the kEventControlDraw is generated
by the draw request in the AUParameterListenerProcs, my
kEventControlDraw handler is invoked and my Quartz drawing code is
called and processed w/o error. Even so, I do not see any changes to
the custom UI.
If I then toggle to another program and come back, another
kEventControlDraw event is issued and the same code path does result in
the updated value being reflected in UI.
I'm at a loss as how to proceed... any pointers would be greatly
appreciated.
Cheers,
--aj
--
"Chance is the limit of the notion of evolving symmetry."
-- Iannis Xenakis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden