Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ingrid Problem
Message
De
13/07/1998 13:54:06
 
 
À
12/07/1998 18:35:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00116648
Message ID:
00116864
Vues:
19
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform