Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ingrid Problem
Message
From
13/07/1998 13:54:06
 
 
To
12/07/1998 18:35:15
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00116648
Message ID:
00116864
Views:
18
>I am using the Ingrid to provide incremental seach capabilities in a grid. The grid is used strictly to locate records from a single table; no changes to the data are required.
>
>I have two problems:
>1. Whenever 0 (zero), is part of the search string, incremental search seems to turn off and I get a message that the control is read only.
>2. Some users have asked that I increase the reset time between keystrokes.
>
>Any help would be appreicated.
>
>Alex Shoob

Alex,
I have modified my copy of Ingrid to take care of these things. Due to the nature, of the changes, I couldn't subclass, but here is what I did.

The ingrid control uses _DBLCLICK as its determination of how long to wait before resetting the search string. I simply added one second to that amount by modifying line 11 of the keypress event to look like the following:

THIS.cSearchString=IIF(m.nElapsedTime>(_DBLCLICK + 1), ;

To handle 0, spacebar, ', and -, I modified line 9 of the same method to read:

CASE BETWEEN(m.nKeyCode, 49, 126) OR INLIST(m.nkeycode,32,45,39,48)

I hope this helps.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform