Delay EditChange while the user is still typing into SLE (search string)
Delay EditChange while the user is still typing into SLE (search string)
Thanks Robert, and Dick (and the others!) for the additional suggestions.
Delay EditChange while the user is still typing into SLE (search string)
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 offjonhn wrote:maybe it was as long ago as 2001 I recall you posting this in the comp.lang.clipper.VO group!
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
-
- Posts: 774
- Joined: Wed May 17, 2017 8:50 am
- Location: Germany
Delay EditChange while the user is still typing into SLE (search string)
that's a very good idea !robert wrote:
And in the constructor
And then check for field.Code: Select all
SELF:lOwnerHasTimer := IsMethod ( SELF:Owner , #OnTimer )
RobertCode: Select all
IF SELF:lOwnerHasTimer
thanks
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)
nope.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.
You can be assured that i wrote the code yesterday and not 20 years ago
regards
Karl-Heinz
-
- Posts: 97
- Joined: Tue Mar 01, 2016 11:50 am
- Location: Germany
Delay EditChange while the user is still typing into SLE (search string)
...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
CASE oEvent:message == WM_TIMER
IF IsMethod ( SELF:Owner , #OnTimer )
SELF:StopTimer()
Send ( SELF:Owner , #OnTimer , SELF:NameSym )
ENDIF
ENDCASE
regards
Gerhard