Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » incremental search
incremental search [message #448456] Mon, 10 January 2005 17:13 Go to next message
jeff is currently offline jeffFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,
In the property editor of my application when selecting for a a drop down
or extended dialog cell editors, to go to a next item in the list I have
keep pressing the letter key again and again till I see that particular
entry. E.g. If I have to find the entry "string" I have to keep pressing
"s" to browse thr' all the entries starting with s to come to the point of
finding string.
How can I override this search where I can do incremental search - like I
will trye s then t then r and it will take me to words with str in them
Currently if I type t after s it will take me to a new word strating with
T.
Hope I am clear.
I want to change only the searching withing the combo boxes and exteded
dialog boxes. If there are lot of items and I know what i want searching
for it using insremental search is easier. E.g look at any fileopendialog
in windows. As you keep typing it will shoow the match. SO I just want to
override this behaviour.
Pl. let me know if you can give any hint.

Thanks in advance for your help.
-Jeff
Re: incremental search [message #448475 is a reply to message #448456] Mon, 10 January 2005 20:04 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Search is provided by the native widget. On some platforms, there is no
search. I would strongly suggest that you just let the operating system do
this in the same manner as other native applications and don't try to
implement it. If you still want to do it, you'll need to implement an
SWT.KeyDown listener, do your own searching and set event.doit=false before
returning to disable the operating system search (if any). Be careful of
using keys like ' ', '\r' etc to control the search. These keys might be
used by the widget.

"jeff" <jefftucky@hotmail.com> wrote in message
news:crud3f$u4i$1@www.eclipse.org...
> Hi,
> In the property editor of my application when selecting for a a drop down
> or extended dialog cell editors, to go to a next item in the list I have
> keep pressing the letter key again and again till I see that particular
> entry. E.g. If I have to find the entry "string" I have to keep pressing
> "s" to browse thr' all the entries starting with s to come to the point of
> finding string.
> How can I override this search where I can do incremental search - like I
> will trye s then t then r and it will take me to words with str in them
> Currently if I type t after s it will take me to a new word strating with
> T.
> Hope I am clear.
> I want to change only the searching withing the combo boxes and exteded
> dialog boxes. If there are lot of items and I know what i want searching
> for it using insremental search is easier. E.g look at any fileopendialog
> in windows. As you keep typing it will shoow the match. SO I just want to
> override this behaviour.
> Pl. let me know if you can give any hint.
>
> Thanks in advance for your help.
> -Jeff
>
>
Previous Topic:Re: Where to put a Swing-specific jar to be accessible by a running plugin using SWT_SWING component
Next Topic:Text should support SWT.NO_FOCUS?
Goto Forum:
  


Current Time: Sun Oct 25 06:14:21 GMT 2020

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

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

Back to the top