Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Combo selection bug?
Combo selection bug? [message #461457] Fri, 23 September 2005 13:16 Go to next message
Qiang Song is currently offline Qiang SongFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I have a very simple example using Combo:
Combo combo = new Combo(parent, SWT.NONE);
combo.add("abc");
combo.add("ab");
combo.add("def");
After i select the item "ab" from the drop down list, the string "ab" is
displayed in the text widget of the combo. But when I click the drop down
arrow again, the selected item in the drop down list changed to "abc". It
seems that the string "abc" has a prefix "ab" which match the text in the
text widget, so it is selected. I don't know why the combo can't keep the
previous selection. By contrast, if i select "def" and click the drop down
arrow again, the "def" item is still selected. I want to know whether it
is a bug in Combo? or something wrong with my program?

I will appreciate your answer!
Re: Combo selection bug? [message #461592 is a reply to message #461457] Mon, 26 September 2005 23:05 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Sounds like a Windows bug (assuming you are running Windows).

"Qiang Song" <songq@cn.ibm.com> wrote in message
news:a02f3bb414ade359525611c9a10c1b80$1@www.eclipse.org...
> Hi,
>
> I have a very simple example using Combo:
> Combo combo = new Combo(parent, SWT.NONE);
> combo.add("abc");
> combo.add("ab");
> combo.add("def");
> After i select the item "ab" from the drop down list, the string "ab" is
> displayed in the text widget of the combo. But when I click the drop down
> arrow again, the selected item in the drop down list changed to "abc". It
> seems that the string "abc" has a prefix "ab" which match the text in the
> text widget, so it is selected. I don't know why the combo can't keep the
> previous selection. By contrast, if i select "def" and click the drop down
> arrow again, the "def" item is still selected. I want to know whether it
> is a bug in Combo? or something wrong with my program?
>
> I will appreciate your answer!
>
Previous Topic:SWT advanced graphics
Next Topic:Programatically open Combo list?
Goto Forum:
  


Current Time: Mon Aug 19 03:49:45 GMT 2019

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

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

Back to the top