realbasic-plugins
[Top] [All Lists]

Re: custom HIView in plugin

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: custom HIView in plugin
From: Alexander Cohen <alexcohen at toomuchspace dot com>
Date: Mon, 23 Oct 2006 13:29:43 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <F39AC2FB-6819-49AD-8D1D-B2AB529418D9 at toomuchspace dot com> <B7CEE16E-3BA8-4392-9583-7A7522675D0D at mac dot com>

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>


<Prev in Thread] Current Thread [Next in Thread>