Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Switched to CCombo from Text default button does not work when focus in CCombo
Switched to CCombo from Text default button does not work when focus in CCombo [message #465355] Fri, 09 December 2005 17:32 Go to next message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
I have an RCP application. In one of my views I had a Text control with a
Button next to it and a Table under them. I set the button up as the
default button for the view's top composite' shell - using code like this:
myTopComposite.getShell ().setDefaultButton (myRetrieveButton);

This worked as I expected. After typing in the text box pressing the
<enter> key caused the button's selection listener to recieve the
widgetSelected event.

Then I changed to a CCombo instead of the Text control. The default
button is still being set the same way but now after typeing (or selecting
a prepopulated selectin) pressing the <enter> key has no effect. If I use
the mouse or <tab> key to put the focus on the table and pres the <enter>
key things behave as I expected.

There seems to be something about the CCombo that is preventing the
default button from getting the widgetSelected event when I press <enter>.

Any advice or suggestions would be appricated.

Thanks,

Ian
Re: Switched to CCombo from Text default button does not work when focus in CCom [message #465357 is a reply to message #465355] Fri, 09 December 2005 18:08 Go to previous messageGo to next message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
I just tried Combo (instead of CCombo) and that worked fine. Since, in
this case, I do not need the extra features of CCombo I can use Combo. I
would still like to know how to get this to work for CCombo boxes too.

Thanks,

Ian
Re: Switched to CCombo from Text default button does not work when focus in CCombo [message #465445 is a reply to message #465355] Tue, 13 December 2005 13:53 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Please enter a bug report against Platform SWT.

"Ian Leslie" <lesliesoftware@yahoo.com> wrote in message
news:ca405f285e5e7fb654bcf3dd0f9fb705$1@www.eclipse.org...
>I have an RCP application. In one of my views I had a Text control with a
>Button next to it and a Table under them. I set the button up as the
>default button for the view's top composite' shell - using code like this:
> myTopComposite.getShell ().setDefaultButton (myRetrieveButton);
>
> This worked as I expected. After typing in the text box pressing the
> <enter> key caused the button's selection listener to recieve the
> widgetSelected event.
>
> Then I changed to a CCombo instead of the Text control. The default
> button is still being set the same way but now after typeing (or selecting
> a prepopulated selectin) pressing the <enter> key has no effect. If I use
> the mouse or <tab> key to put the focus on the table and pres the <enter>
> key things behave as I expected.
>
> There seems to be something about the CCombo that is preventing the
> default button from getting the widgetSelected event when I press <enter>.
>
> Any advice or suggestions would be appricated.
>
> Thanks,
>
> Ian
>
Re: Switched to CCombo from Text default button does not work when focus in CCom [message #465448 is a reply to message #465445] Tue, 13 December 2005 21:20 Go to previous message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
Done:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=120744
Previous Topic:Table referesh problem
Next Topic:MessageBox
Goto Forum:
  


Current Time: Sun Dec 08 22:07:03 GMT 2024

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

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

Back to the top