Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » The behavior of "isFocusControl" API on Linux
The behavior of "isFocusControl" API on Linux [message #463964] Tue, 15 November 2005 20:34 Go to next message
Benson Ning is currently offline Benson NingFriend
Messages: 14
Registered: July 2009
Junior Member
Hi, I have a text field and a button in a cell editor for a table widget,
I add focus listener for both of text and button, in the "focusLost(...)"
method, I am checking if the button has the focus by calling
button.isFocusControl(), but it returns FALSE to me everytime when I click
on the button from the text field (it returns TRUE on windows). Is this a
known problem or any workarounds for this? Thanks. (I am using eclipse
3.0.2)
Re: The behavior of "isFocusControl" API on Linux [message #464102 is a reply to message #463964] Wed, 16 November 2005 20:08 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=4479 describes the fix we
applied to Display.getFocusControl(). Looks like we forgot to apply the fix
to Control.isFocusControl(). In either case, both bugs exist in 3.0.2.

"Benson" <bensonn@ca.ibm.com> wrote in message
news:0a60858ab31a51c88b2c0f601b1f29dc$1@www.eclipse.org...
> Hi, I have a text field and a button in a cell editor for a table widget,
> I add focus listener for both of text and button, in the "focusLost(...)"
> method, I am checking if the button has the focus by calling
> button.isFocusControl(), but it returns FALSE to me everytime when I click
> on the button from the text field (it returns TRUE on windows). Is this a
> known problem or any workarounds for this? Thanks. (I am using eclipse
> 3.0.2)
>
Re: The behavior of "isFocusControl" API on Linux [message #464106 is a reply to message #464102] Wed, 16 November 2005 20:43 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Fixed > 20051116

"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:dlg3jk$2vo$1@news.eclipse.org...
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=4479 describes the fix we
> applied to Display.getFocusControl(). Looks like we forgot to apply the
fix
> to Control.isFocusControl(). In either case, both bugs exist in 3.0.2.
>
> "Benson" <bensonn@ca.ibm.com> wrote in message
> news:0a60858ab31a51c88b2c0f601b1f29dc$1@www.eclipse.org...
> > Hi, I have a text field and a button in a cell editor for a table
widget,
> > I add focus listener for both of text and button, in the
"focusLost(...)"
> > method, I am checking if the button has the focus by calling
> > button.isFocusControl(), but it returns FALSE to me everytime when I
click
> > on the button from the text field (it returns TRUE on windows). Is this
a
> > known problem or any workarounds for this? Thanks. (I am using eclipse
> > 3.0.2)
> >
>
>
Previous Topic:SWT Style to have at least one selected item ?
Next Topic:Re: ScrolledComposite scrol bar event not firing on Windows XP
Goto Forum:
  


Current Time: Fri Apr 19 14:23:23 GMT 2024

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

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

Back to the top