Delphi Search Edit Component

I need the delphi component for Delphi 2007 win32, which has features like google search text box.

** When the user writes down the search key, he must fill in / update the list with the values, and the user can select one of them.

** The user can go up and down and select one of them.

** The list should contain codes and a couple of words, so the user can select the text, and I can get the code for database operations.

(Google can highlight search text in a list, but I think this is not possible with Delphi 2007, so this is not expected.)

I tried Dev Express TcxMRUEdit, however it does not meet my needs

+4
source share
3 answers

Since you have DevExpress, why don't you try cxLookupComboBox in lsEditMode and with ImmediateDropDown = True?

+2
source

Check woll2woll components. TLookupcombobox has done this with Delphi 3 (or earlier). This is not spam, I just use the library.

http://www.woll2woll.com/

+1
source

I also had the same problem and unfortunately did not find a suitable component. I was also inspired by Google.

Thus, it became easier for me to "simulate a component" using the edit box and the grid below it. When the user enters something into the edit box, the query is updated and the corresponding result is displayed in the grid. I have many columns in the grid, the query results try to combine all the fields (therefore, if I type "po", the query will return all records where any field looks like "po%"). I also added a delay of 500 ms after the user enters the code to avoid running too many unnecessary requests (another example would be to kill the stream when the user throws a new key if the request is executed on the stream).

Thus, I got the required functionality, even if without highlighting the search text, in any case, my users are delighted with this.

In every place I use this "component". I am attaching a request at runtime so that it can be used in many different forms.

I was somehow inspired by the skype interface: when you show the lsit of contacts, you can enter something and the contacts will be filtered out accordingly (skype uses editbox + grid / listbox).

0
source

Source: https://habr.com/ru/post/1307449/


All Articles