Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Double click event in "Combo"
Double click event in "Combo" [message #444363] Tue, 12 October 2004 06:10 Go to next message
Eclipse UserFriend
Originally posted by: tanut.sanuk.biz

Hello
I have add mouseListerner to my SWT Combo. When I double click on its
area, it does not fire the event function. The only way it can is double
click on the Combo border.. ???
How should I do? I want the user choose the item in combo box or user can
double click on it to select the default item.

Thank you :)
Re: Double click event in "Combo" [message #444375 is a reply to message #444363] Tue, 12 October 2004 14:11 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
1) Sounds like a bug. What platform are you using?
2) You should use the default selection listener not the double click
listener. This will make your application more accessible and have a more
correct feel for the platform it is running on.

Combo.addSelectionListener(new SelectionAdapter(){
public void widgetDefaultSelected(SelectionEvent e) {
}
});

"Tanut Apiwong" <tanut@sanuk.biz> wrote in message
news:ckfs7k$l5k$1@eclipse.org...
> Hello
> I have add mouseListerner to my SWT Combo. When I double click on its
> area, it does not fire the event function. The only way it can is double
> click on the Combo border.. ???
> How should I do? I want the user choose the item in combo box or user can
> double click on it to select the default item.
>
> Thank you :)
>
>
Re: Double click event in "Combo" [message #444447 is a reply to message #444375] Wed, 13 October 2004 03:49 Go to previous message
Eclipse UserFriend
Originally posted by: tanut.sanuk.biz

Thank you. I will try it

ps. my Eclipse version is 2.1.3


"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:ckgodn$ed9$1@eclipse.org...
> 1) Sounds like a bug. What platform are you using?
> 2) You should use the default selection listener not the double click
> listener. This will make your application more accessible and have a more
> correct feel for the platform it is running on.
>
> Combo.addSelectionListener(new SelectionAdapter(){
> public void widgetDefaultSelected(SelectionEvent e) {
> }
> });
>
> "Tanut Apiwong" <tanut@sanuk.biz> wrote in message
> news:ckfs7k$l5k$1@eclipse.org...
> > Hello
> > I have add mouseListerner to my SWT Combo. When I double click on its
> > area, it does not fire the event function. The only way it can is double
> > click on the Combo border.. ???
> > How should I do? I want the user choose the item in combo box or user
can
> > double click on it to select the default item.
> >
> > Thank you :)
> >
> >
>
>
Previous Topic:Drawing scenario in SWT
Next Topic:Custom Widget in Drop Down Menu
Goto Forum:
  


Current Time: Sat Oct 24 18:45:32 GMT 2020

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

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

Back to the top