Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Proper event handling approach for Mac custom native widget?
Proper event handling approach for Mac custom native widget? [message #454338] Wed, 20 April 2005 18:39 Go to next message
Chris Saari is currently offline Chris SaariFriend
Messages: 4
Registered: July 2009
Junior Member
I have a custom widget on Mac and Win with a native impl on both
platforms. On Win32 event handling is straight forward, the native window
gets the message directly. On Mac I have a custom Carbon Control that I've
embedded into the UserPaneControl handed down from the SWT Composite
parent. I attached a Carbon EventListener to my custom control, but it
never sees any events, it's like SWT is capturing them all; The Java side
of the widget sees the corresponding SWT events just fine.

For a custom native backed widget on Mac is the proper approach for
handling events to listen for SWT events in Java and then shove them down
to the native impl as necessary? This seems round about and dangerous
(completely subverting the Carbon event routing), not to mention pretty
different from the win32 routing.

Thanks,
-chris
Re: Proper event handling approach for Mac custom native widget? [message #454596 is a reply to message #454338] Mon, 25 April 2005 13:20 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Hi Chris! The event routing in Windows will be completely different from
cabon because the platforms are totally different. Which events are you
missing? As far as I knew, we don't eat cabon events. Can you put together
a small stand alone example that shows the problem and enter it as a
bugzilla report?

"Chris Saari" <csari@macromedia.com> wrote in message
news:e24c9c43237bef277c14f01c326dc641$1@www.eclipse.org...
> I have a custom widget on Mac and Win with a native impl on both
> platforms. On Win32 event handling is straight forward, the native window
> gets the message directly. On Mac I have a custom Carbon Control that I've
> embedded into the UserPaneControl handed down from the SWT Composite
> parent. I attached a Carbon EventListener to my custom control, but it
> never sees any events, it's like SWT is capturing them all; The Java side
> of the widget sees the corresponding SWT events just fine.
>
> For a custom native backed widget on Mac is the proper approach for
> handling events to listen for SWT events in Java and then shove them down
> to the native impl as necessary? This seems round about and dangerous
> (completely subverting the Carbon event routing), not to mention pretty
> different from the win32 routing.
>
> Thanks,
> -chris
>
Previous Topic:Inefficient image loadings?
Next Topic:How to change the drop list of a CCombo?
Goto Forum:
  


Current Time: Fri Feb 26 04:58:09 GMT 2021

Powered by FUDForum. Page generated in 0.01810 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top