On 23-Oct-06, at 12:32 PM, Alfred Van Hoek wrote:
On Oct 23, 2006, at 11:45 AM, Alexander Cohen wrote:
Im creating a custom HIView in a class in a plugin. Its not a
control its a class. I have all the correct handlers on the HIView
to receive tracking events and hit testing. I add the custom
HIView to a rb window and all is good, it draws correctly and
responds to everything except the tracking events. If i use the
same HIView in a window that i create in the plugin, i receive the
tracking events. Is there anything i need to know about tracking
events in the HIView? Does rb intercept the HitTest and tracking
events within its windows? Any ideas why im not receiving these
events?
You need to install an eventhandler on the window rb provides, or
grab the handle from the canvas and install an event handler on
that handle. In the latter case, unfortunately, when the canvas
lives on a window with the composite flag set, it won't work
because the canvas' handle is nil.
Im not using a canvas. Im actually creating a class that handles a
HIView. Im adding it programmatically to to the windows content view.
I installed an event handler on that HIView but im not receiving the
tracking events.
AC
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>