Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsFocusListeners, part 2
https://www.eclipse.org/forums/index.php/mv/msg/166039/526211/#msg_526211
Basically, my problem is the following:
I add untyped focuslisteners (SWT.FocusIn and SWT.FocusOut) to my canvas widget, which works perfectly fine. But when I try to add e.g. a Button with the canvas as parent, the focuslistener that I added to the canvas doesn't work anymore. Has anyone got any idea why this happens, and what I can do about it?
]]>Katarina Olsson2010-04-09T09:13:11-00:00Re: FocusListeners, part 2
https://www.eclipse.org/forums/index.php/mv/msg/166039/526354/#msg_526354
> I add untyped focuslisteners (SWT.FocusIn and SWT.FocusOut) to my canvas
> widget, which works perfectly fine. But when I try to add e.g. a Button
> with the canvas as parent, the focuslistener that I added to the canvas
> doesn't work anymore. Has anyone got any idea why this happens, and what
> I can do about it?
When you add Button to Canvas, how does the Button widget covers Canvas
widget - completely or partly ? In that case of completely covering, all
focus events will be received by only Button itself as Canvas is no more
exposed. So, you might need to deal with focus listeners of Button further.
Anyway, providing us the snippet might help to resolve the problem at
the earliest.]]>Praveen 2010-04-09T19:00:40-00:00