Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Turning off Spacebar as a selector?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00164711
Message ID:
00164827
Vues:
21
David,
I just tried what you suggested...here's my code in the cbo keypress:

LPARAMETERS nKeyCode, nShiftAltCtrl
* capture the spacebar and treat it as a space
* and not as a selection indicator
IF nShiftAltCtrl = 0 AND nKeyCode = 32
* Spacebar was hit
NODEFAULT
This.value = This.Value + " "
This.Refresh()
ELSE
ENDIF

It no longer acts as the selector when I hit the space bar (yea!!) but it does stop the incremental searching. Is there a way to keep the search going?

Rick
---------------------------------
>Rick,
>
>In the cbo.KeyPress:
>
>if ( nKeyCode = 32 )
> nodefault
>endif
>
>>I'm in a combo-box using incremental search and I want to incrementally search in strings which have embedded spaces.
>>
>>For instance:
>>"Great West - Ohio"
>>I want to be able to enter:
>>"g"
>>"r"
>>"e"
>>"a"
>>"t"
>>" "
>>"w"
>>"e"
>>"s"
>>"t"
>>etc., etc., etc.
>>
>>The problem I'm having is when the spacebar is hit, it's acting as a selector...in terminates the incremental search. I would like to allow the use of the space bar. How do I do that? I tried the keypress event and either I'm using it wrong or????
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform