Welcome! Log In Create A New Profile

Advanced

[WB24] Delayed search after input in edit field

Posted by Michael Drechsel 
[WB24] Delayed search after input in edit field
February 04, 2021 12:47PM
Hi,

I need a delayed search after input in a edit field.
User should type in a name and after 1 second the search should be start.

Any ideas ?

regards Michael



Edited 1 time(s). Last edit at 02/04/2021 12:59PM by Michael Drechsel.
Al
Re: [WD24] Delayed search after input in edit field
February 04, 2021 01:06PM
Hello Michael

I have a lookahead() process that runs in the whenever modified field.
For me it triggers after a certain number of characters are entered.

Maybe you could do something similar except use timersys() or a hidden timer button to wait before running the search.
You might also need to test for Keypressed() for VK_Space and VK_Back or just test to see if it is alpha or numeric before initiating the search

Regards
Al



Edited 1 time(s). Last edit at 02/04/2021 01:07PM by Al.
Argus
Re: [WD24] Delayed search after input in edit field
February 04, 2021 01:12PM
in 'each modification' code of the field, do a timersys with a FORCED timer number and a 1s delay
Each call to the timer will REPLACE the previous one as it's the same number
Re: [WD24] Delayed search after input in edit field
February 04, 2021 01:44PM
Hi,

thx for your reply.

@Argus: Yes, that was also my solution after a short brainstorming with myself :-)

regards Michael
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: