xsharp.eu • Delay EditChange while the user is still typing into SLE (search string) - Page 2
Page 2 of 2

Delay EditChange while the user is still typing into SLE (search string)

Posted: Mon May 03, 2021 7:50 pm
by jonhn
Thanks Robert, and Dick (and the others!) for the additional suggestions.

Delay EditChange while the user is still typing into SLE (search string)

Posted: Mon May 03, 2021 10:37 pm
by Chris
jonhn wrote:maybe it was as long ago as 2001 I recall you posting this in the comp.lang.clipper.VO group!
Yeah, Karl-Heinz has been providing such solutions in the newsgroups/forums since more than 20 years ago! I remember I was so impressed about how he seemed to know absolutely everything in the Windows API and this triggered me to read tons and tons of help files so I could also be able to provide solutions like his! It payed off :)

Delay EditChange while the user is still typing into SLE (search string)

Posted: Tue May 04, 2021 5:26 am
by Karl-Heinz
robert wrote:
And in the constructor

Code: Select all

SELF:lOwnerHasTimer := IsMethod ( SELF:Owner , #OnTimer )
And then check for field.

Code: Select all

IF SELF:lOwnerHasTimer
Robert
that's a very good idea !

thanks
Karl-Heinz

Delay EditChange while the user is still typing into SLE (search string)

Posted: Tue May 04, 2021 5:38 am
by Karl-Heinz
jonhn wrote:Thank you Karl-Heinz! This is exactly the thing I had in my dusty memory - maybe it was as long ago as 2001 I recall you posting this in the comp.lang.clipper.VO group!
You've made my day.
nope.

You can be assured that i wrote the code yesterday and not 20 years ago ;-)

regards
Karl-Heinz

Delay EditChange while the user is still typing into SLE (search string)

Posted: Tue May 04, 2021 11:40 am
by g.bunzel@domonet.de
...and maybe it's better, to stop the timer first and then SEND(..) the notification to the owner. To not have more notifications - if the SEND-Method needs more time to be finished...

CASE oEvent:message == WM_TIMER

IF IsMethod ( SELF:Owner , #OnTimer )

SELF:StopTimer()

Send ( SELF:Owner , #OnTimer , SELF:NameSym )

ENDIF

ENDCASE

regards
Gerhard