JQuery TypeWatch functionality in Delphi

TypeWatch is a jQuery plugin that controls the time between keystrokes in an input text box.

It allows you to use features such as updating search results when a user enters search terms, as shown on the Users page in Stack Overflow.

If you type the name of the user with whom you want to sit and pause input for half a second, a search result will appear for what you have already entered.

Does anyone have examples or information on how you could control the text box in delphi in a similar way, since the user throws a trigger event if it stops printing for a certain period of time, say, half a second.

+3
source share
1 answer

You can take a look at the idea of ​​the AutoComplete function of a regular ComboBox.
Or implement a timer from reset to 0 each time you press the "Ctrl" key in your "Edit" and launches the onTimer event handler when it reaches the delay you specified (i.e., after the key record has not been entered for this time interval) .
I am sure there are free components that implement this ...

+2
source

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


All Articles