Re: AUCarbonViewBase without controls?
Re: AUCarbonViewBase without controls?
- Subject: Re: AUCarbonViewBase without controls?
- From: arne <email@hidden>
- Date: Thu, 01 Jul 2004 23:29:56 +0200
Jeremy Todd wrote:
The only advantage I was hoping for is portability. For example I'm also
supporting the VST plug-in format and in that case I don't think a
control is embedded in the window. Would you suggest that I embed a
control in the window if there isn't one already, and use that as the
basis for a portable UI framework?
If you look at the latest VSTGUI code at sourceforge, you will see that
it is actually a mac control which is embeded to the window, so you can
add a control to the window in the vst world ;-)
cheers
arne
Jeremy
On Jul 1, 2004, at 4:14 PM, Marc Poirier wrote:
You can't depend on getting any window events because you don't own the
window, the host does, the host can do anything it wants which may
prevent
your event handler from receiving window events. You only own the pane
control and anything embedded in it. What advantage do you think that
you
will get from window mouse events rather than listening to pane mouse
events anyway?
Marc
On Thu, 1 Jul 2004, Jeremy Todd wrote:
Hi,
I'm developing an AudioUnit in Xcode 1.2 and I'm having trouble
receiving mouse down messages. Basically I was hoping to inherit
AUCarbonViewBase but do away with the control which is embedded in the
window. I want to install an event handler on the carbon window itself,
but my handler isn't receiving events of kind kEventMouseDown.
I am seeing all sorts of events in AUCarbonViewBase::HandleEvent and I
see how to register for them with WantEventTypes. I tried converting
control click into mouse down and sending it to the window directly,
but when debugging with Rax I see:
2004-07-01 16:05:07.030 Rax[17459] GetEventParameter() returned -9870.
Note that if I break just before sending the event then continue again,
the event is relayed to the window without a problem! So I can only
conclude that I'm doing something terribly wrong here.
Any advice on creating an AudioUnit with a simple carbon window which
can receive mouse events would be most appreciated!
Thanks,
Jeremy
_______________________________________________
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.
_______________________________________________
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.