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

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
jonhn
Posts: 86
Joined: Thu Feb 01, 2018 8:04 am
Location: New Zealand

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

Post by jonhn »

Thanks Robert, and Dick (and the others!) for the additional suggestions.
User avatar
Chris
Posts: 4922
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

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

Post 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 :)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

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

Post 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
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

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

Post 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
g.bunzel@domonet.de
Posts: 97
Joined: Tue Mar 01, 2016 11:50 am
Location: Germany

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

Post 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
Post Reply