Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to open google like dropdown on search
Message
From
08/10/2017 05:41:28
 
 
To
04/10/2017 15:54:59
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01654753
Message ID:
01654821
Views:
86
Hi

>The following is the code of the wildsearchcombo which is based upon taxcombo. I can't give you the source of taxcombo as it contains a lot more that you do not need and have to remove as it is Reliant on our framework.

Thank you very much. Great code.
It seems that uses fixed dbf file for lookup.
In my case matching list in dropdow should retrieved server through ODBC.
I started re-factoring it.

I noticed that if dropdown is open, home and end keys are moving to first / last item in dropdown and left and righ arrow keys are also not moving cursor in seach field.
It looks like dropdown intercepts them.
How to make home key to go to move start of field and end to end of field. Down cal closed if those keys are
pressed if this helps make them to work.

Also backspace does not work if menu is open. I changed keypress event a bit to make it work.

If refresh method really reuqired? It contain comment which I doen understand:
* WM 2016/2/3 This code was added to fix the problem that items were not
* displayed when soft-deleted

It looks like code does not soft-dele items, it creates new array always.

Search method is duplicated in several places. It should be in single method only. Can it be only in keypress event and removed from other places.

Andrus.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform