You might try adding a Carbon event handler to the window to handle mouse events before the Rb code. As I recall, event handlers form a stack, so the last handler added gets first crack at the events for which it has registered. I've had mixed luck in taking control of mouse events in windows via declares.
Charles Yeomans On May 2, 2007, at 12:11 PM, Daniel Stenning wrote: > Currently just on OS/X. > > If I use just pure carbon calls to create, pass its reference to > the OS/X > dylib and open the window it works just fine. > > I would really like to use a REALbasic window and just pass control > over to > my dylib ( yes - I said DLL by mistake - should have used the word > library ) > > > On 2/5/07 16:45, "Charles Yeomans" <[EMAIL PROTECTED]> wrote: > >> >> On May 2, 2007, at 10:36 AM, Daniel Stenning wrote: >> >>> I have a dll which uses and draws into a window. >>> >>> If I use declares I can use Carbon calls to open up a window >>> totally via >>> carbon calls, and pass the windowref onto the dll. The window then >>> behaves >>> fine under control of the DLL. >>> >>> If I try to use an RB window, passing the windowref on to the >>> DLL, and >>> usinng exactly the same code to for Carbon event loops, the window >>> draws but >>> doesn't respond to any mouse events. Is there something special >>> needed to >>> let DLLs gain control over an RB window ? >> >> I'm confused; are you talking about getting this to work in Mac OS, >> or Windows? >> >> Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
