Page 1 of 2

Combobox - Incremental Search and Anywhere Search

Posted: Wed Jul 30, 2014 4:56 pm
by Rathinagiri
It is my long time wish to accommodate incremental and anywhere search in combobox itself. Esgici had seeded Combo Search Box in HFCL which has its branches like AutoComplete, HMG_aChoice, ComboSearchGrid etc.

I had tried to implement the GridIncrementalSearch sample to the ComboBox, so that anywhere search is implemented. I am sure we can improve a lot. Give me your suggestions and help in this regard. So, you can type 'america' to select United States of America. :)
ComboAnywhereSearch.zip
(5.9 KiB) Downloaded 412 times

Re: Combobox - Incremental Search and Anywhere Search

Posted: Wed Jul 30, 2014 5:34 pm
by Javier Tovar
Hola Rthinagiri,

Me da el siguiente error al compilar en h.m.g.3.2, debe de ser con la ultima versión exclusivamente?

Saludos y gracias por el interés en trabajo hecho.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Hello Rthinagiri,

I get the following error when compiling in hmg3.2, should be with the latest version only?

Greetings and thanks for the interest in work done.

Code: Select all

Harbour 3.2.0dev (r1312060701)
Copyright (c) 1999-2013, http://harbour-project.org/
C:/Users/Maquina6/AppData/Local/Temp/hbmk_oob3q7.dir/main.o:main.c:(.data+0x238): undefined reference to `HB_FUN_EVENTISMOUSEMESSAGE'
collect2: ld returned 1 exit status
hbmk2: Error: Ejecutando enlazador. 1
gcc.exe C:/Users/Maquina6/AppData/Local/Temp/hbmk_oob3q7.dir/main.o C:/Users/Maquina6/AppData/Local/Temp/hbmk_oob3q7.dir/hbmk_28bm30.o F:/hmg.3.2/Mios/ComboAnywhereSearch/_temp.o    -Wl,--nxcompat -Wl,--dynamicbase -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lhfcl -lini -lreport -lmsvfw32 -lvfw32 -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbmysql -lmysql -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbfimage -lhbpgsql -lhbnetio -lxhb -lpng -llibhpdf -lhbvpdf -lhbzebra -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib   -Wl,--end-group -omain.exe  -LF:/hmg.3.2/harbour/lib/win/mingw -LF:/hmg.3.2/lib

hbmk2: Error: Funci¢n(es) referenciada, no encontrada, pero desconocida:
       EVENTISMOUSEMESSAGE()

Re: Combobox - Incremental Search and Anywhere Search

Posted: Wed Jul 30, 2014 6:16 pm
by esgici
Thanks Mr. Rathinagiri,

we have many chose to learn, especially new feature in HMG: events :?

In HMG 3.3.1 worked with no problem 8-)

By the way, does "anywhere" includes "Name" and "Text" text-box ?

Regards

Correction added :

we have many chose to learn => we have many thing to learn

( sorry; chose is thing in French :( )

Re: Combobox - Incremental Search and Anywhere Search

Posted: Thu Jul 31, 2014 4:02 am
by Rathinagiri
Javier Tovar, yes, you have to install the latest version to run this sample.

Esgici, it doesn't include textboxes.

'Anywhere' here means anywhere inside the item text. For example, to search for 'South Africa', you need not type 'South'. You can start typing for 'Africa'.

Re: Combobox - Incremental Search and Anywhere Search

Posted: Thu Jul 31, 2014 7:47 am
by Clip2Mania
Rathinagiri,

exactly what I was looking for! Have not tried it to the full extent, but it looks great already. Such an improvement compared to the previous Combosearchbox!

For textboxes, I use 'Autofill' :)

Thx,
Erik

Re: Combobox - Incremental Search and Anywhere Search

Posted: Thu Jul 31, 2014 8:01 am
by dragancesu
I tried it, works perfectly

But what happens when there are several "hits" an example for the city, "city", will show the first and the following will not find

Mexico City
Kansas City
Salt Lake City
Oklahoma City
Ho Chi Minh City

City ​​names are sorted and will show the "Ho Chi Minh City", how to easily find the "Mexico City"?

Re: Combobox - Incremental Search and Anywhere Search

Posted: Thu Jul 31, 2014 8:56 am
by Clip2Mania
But what happens when there are several "hits" an example for the city, "city", will show the first and the following will not find
I think that most users will know what city they are looking for. ;)
The 'America' and 'United States of America' was a good example, so is for example 'Congo' and 'République du Congo', but the main word you are looking for is not "République" (there are many), but 'Congo'. Same for 'Island', most of the time you know which one... :)

There might indeed be anomalies, but you still have the 'classic' way by clicking on the drop-down & selecting the 'old-fashioned' way.

Re: Combobox - Incremental Search and Anywhere Search

Posted: Thu Jul 31, 2014 9:14 am
by dragancesu
I did not mean to write this as a criticism but as a suggestion

It is very interesting to search for any word, that's great, but then there are some specific problems

Yes, I can look and classic, but then stops searching for any word

Re: Combobox - Incremental Search and Anywhere Search

Posted: Thu Jul 31, 2014 9:15 am
by bpd2000
Tested working nice
Thank you Rathi for sharing nice implementation

Re: Combobox - Incremental Search and Anywhere Search

Posted: Thu Jul 31, 2014 9:53 am
by Rathinagiri
dragancesu wrote:I tried it, works perfectly

But what happens when there are several "hits" an example for the city, "city", will show the first and the following will not find

Mexico City
Kansas City
Salt Lake City
Oklahoma City
Ho Chi Minh City

City ​​names are sorted and will show the "Ho Chi Minh City", how to easily find the "Mexico City"?
Hi dragancesu,

Are you a mind reader?! You are just reflecting my thoughts man!
ComboAnywhereSearch.zip
(6.08 KiB) Downloaded 413 times
Now, press up/down key to move around 'City' :)